Hook.Plugin.Cordova.PushNotification Class
Item Index
Methods
Methods
register
()
Register device for Push Notifications
Returns:
Hook.Plugin.Cordova.PushNotification
Example:
Registering for push notifications on Android
//
// Get a senderID on your app's Google Console
// - https://developers.google.com/console
//
dl.cordova.push.register({senderID: "xxxx"}).on('notification', function(e) {
console.log("Notification: ", e);
});
Registering for push notifications on iOS
dl.cordova.push.register().on('notification', function(e) {
console.log("Notification: ", e);
});
unregister
()
Unregister device for Push Notifications