addListener


Purpose

Registers a listener for push notifications.

Signature

addListener( callback )

Returns

This method does not return anything.

Parameter

Name Description Type Use
callback Passed to process the notification. undefined required

Callback structure

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 .

Methods

Name Description Return type
onPushNotification Called if the registration is successful. It passes the data that has been sent in a notification. undefined

Related topics

PushNotifications
Legal notice | Copyright © 2015 and Confidential to Pegasystems Inc. All rights reserved. | Feedback
Advanced...