Skip to content

thomasuster/local-notifications

Repository files navigation

local-notifications

NME extension for Android & iOS Local Notifications

Getting Started

  1. Fork your own copy of thomasuster/local-notifications

  2. Clone your copy git clone git@github.com:thomasuster/local-notifications.git

  3. Add haxelib haxelib dev local-notifications local-notifications

  4. Add this this to your project

var localNotifications:AndroidLocalNotifications = new AndroidLocalNotifications();
var notification:Notification = new Notification();
notification.id = 1;
notification.title = "Title";
notification.textContent = "This is the text content.";
notification.milliseconds = 5*1000;
notification.smallIconColor = 0xff3c81;
localNotifications.schedule(notification);
//localNotifications.cancel(1);

nme test android -gradle

Helpful for debugging

adb shell am broadcast -a android.intent.action.BOOT_COMPLETED

adb logcat -s System.out

About

NME extension for Android & iOS Local Notifications

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published