Connector APIs for Push
The following Connector APIs helps you to integrate with Push providers.
aa821test
The following Connector APIs helps you to integrate with Push providers.
init
Description
This method is used to initialize the configurations required for Push Notification
API Signature
boolean init(Properties config)
Input Parameter
Config
Specifies the push provider configuration.
Return Values
Boolean
Returns the boolean value true or false.
sendNotification
Description
This method is used to send push notification content and data content to Push provider.
API Signature
PushResultSet sendNotification(List<String> device, Map<String, String> notificationMsg, Map<String, String> dataMsg)Input Parameter
device
Specifies the list of devices for sending the push notification.
notificationMsg
Specifies the notification key value pairs in JSON data format as notification content to push provider.
dataMsg
Specifies data key value pairs in JSON data format as data content to push provider.
Return Values
PushResultSet
Returns PushResultSet object with error message details, status (success/fail), deviceToken, and messageID.