...
Code Block |
---|
{ "id": 1, // id of the notification, which will be unique "type": 1, // Notification type - Their can dirrent notification types, like DOWNTIME, GREETINGS, NON-DISPLAY and OTHERS "relative": 2, // Relative time will be 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 inforamationinformation 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.
https://projects.invisionapp.com/share/7BO6N68STCM#/screens/321764335
...