NME extension for Android & iOS Local Notifications
-
Fork your own copy of thomasuster/local-notifications
-
Clone your copy
git clone git@github.com:thomasuster/local-notifications.git
-
Add haxelib
haxelib dev local-notifications local-notifications
-
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
adb shell am broadcast -a android.intent.action.BOOT_COMPLETED
adb logcat -s System.out