API Docs for: 0.2.1
Show:

Hook.Plugin.Cordova.PushNotification Class

Extends Hook.Events
Module: Hook.Plugin

Item Index

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