WebAPI/PushAPI: Difference between revisions

Line 140: Line 140:
* '''id''': a server side generated id to identify the notification. <b>Mandatory</b>.
* '''id''': a server side generated id to identify the notification. <b>Mandatory</b>.
* '''message''': Main body. This could contain a maximum of 1024 bytes. Can be anything that fits in UTF8. <i>Optional</i>
* '''message''': Main body. This could contain a maximum of 1024 bytes. Can be anything that fits in UTF8. <i>Optional</i>
* '''ttl''': Maximum time of live of the notification. The server will discard any notification in a maximum time or in the ttl time, whatever first occurs. <i>Optional</i>.
* '''ttl''': Maximum time of live of the notification. The server will discard any notification in a maximum time or in the ttl time, whatever first occurs. In seconds. <i>Optional</i>.
* '''timestamp''': Time when the notification was sent. <i>Optional</i>.
* '''timestamp''': Time when the notification was sent. In seconds. <i>Optional</i>.
* '''priority''': A priority value, from 1 to 4. 1 should be delivered instantly, and 4 will be delivered at the servers discretion. <i>Optional</i>
* '''priority''': A priority value, from 1 to 4. 1 should be delivered instantly, and 4 will be delivered at the servers discretion. <i>Optional</i>


Confirmed users
120

edits