- PhoneGap Version : 3.0
- last update : 01/10/2013
PhoneGap plugin for providing native local notification system to JavaScript.
** NOTE: Notification queuing is iOS ONLY.**
Respect to Greg Allen 2011 - Copyright (c) MIT Licensed On which the (iOS & JS methods) plugin is based. Original can be found here https://github.com/purplecabbage/phonegap-plugins/tree/master/iPhone/LocalNotification
iOS
cordova plugin add https://github.com/Wizcorp/phonegap-plugin-localNotifications
build ios
< or >
phonegap local plugin add https://github.com/Wizcorp/phonegap-plugin-localNotifications
phonegap build ios
Android
cordova plugin add https://github.com/Wizcorp/phonegap-plugin-localNotifications
build android
< or >
phonegap local plugin add https://github.com/Wizcorp/phonegap-plugin-localNotifications
phonegap build android
localNotification.add(Int id, JSONObject options);
** NOTE: Adding a notification with the same id stops the notification and adds another. **
{
seconds: 30,
message: "chaaaarrrliieeeee",
badge: 1
};
localNotification.queue(Int id, JSONObject options);
** NOTE: Queuing is currently iOS ONLY. **
{
seconds: 30,
message: "chaaaarrrliieeeee",
badge: 1
};
localNotification.cancel(Int id);
localNotification.cancelAll();
localNotification.setApplicationBadge(Int value);
localNotification.getApplicationBadge(getSuccesFunction);
localNotification.launch(standardLaunchFunction, launchDueToNotificationFunction);