The PushNotifications
listener's callback can be structured as
follows:
{ onPushNotification: function(data) { ... } }
Depending on a device platform, the data
object contains such properties, as
alert
, badge
and sound
.
Name | Description | Return type |
---|---|---|
onPushNotification |
Called if the registration is successful. It passes the data that has been sent in a notification. | undefined |