...
Code Block |
---|
{ "id": 1, // id of the notification will be integer, which will be unique "type": 1, // Notification type will be integer - Their can dirrentdifferent notification types, like DOWNTIME, GREETINGS, NON-DISPLAY and OTHERS "relativerelativetime": 2, // Relative time will be integer and only for the Local notification to be shown from Mobile side, it will not be present in Server notification and it will be mentioned in integer, which specify number of hours after installation of app, the notification has to be shown "epoch":"", // Epoch will be present only for Server notifications, and the format of the epoch will be 2016-08-29T02:40:33+0530 "expiry":"", // Expiry will be present only for Server notification, and it will be mentioned in integer, which specify number of minutes after the epoch time, notification expires "actiondata":""{} // action data contains all the information related to type of the notification, like poster url, translations, notification title } |
The data received in the actiondata will be with respective to the type of the notification, example, if the type is DOWNTIME, the client would expect the keys relevant to the DOWNTIME type of notification.
...