Local notification and icon badging support for iOS and Android OpenFL targets

To install, run:

haxelib install samcodes-notifications 1.0.5 

See using Haxelib in Haxelib documentation for more information.

Haxe Local Notifications

Local notifications support for Haxe OpenFL Android and iOS targets. See the demo here.


  • Schedule, manage and cancel local device notifications.
  • Manage application icon notification badge counts.
  • Open application when notification is tapped.

If there is something you would like adding let me know. Pull requests welcomed too.


Get the haxelib:

haxelib install samcodes-notifications


Include the haxelib through Project.xml:

<haxelib name="samcodes-notifications" />

Known Issues

Due to a bug it is not currently possible to cancel individual notifications on iOS, though they can be cancelled all together. This means that if you schedule notifications using the same slots, they will not override each other on iOS, but will on Android.


See the demo app for a complete example.

Android notifications and badging. Badging is done using ShortcutBadger:

Screenshot of Android notification

iOS notifications and badging:

Screenshot of iOS notification


This haxelib was originally based on the local notifications extension for Stencyl by byrobingames. Android app icon badging support is provided by ShortcutBadger by Leo Lin, which is licensed under the Apache License, Version 2.0.

Use `#if (androidios)` conditionals around your imports and calls to this library for cross platform projects, as there is no stub/fallback implementation included in the haxelib.

If you need to rebuild the iOS or simulator ndlls navigate to `/project and run`.

1 year ago

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser!

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github