WebAPI/SimplePush: Difference between revisions

Line 188: Line 188:
The server should return an object with the following fields:
The server should return an object with the following fields:


* <tt>digest</tt> - This will return a digest of the known ChannelIDs for the calling User Agent. This digest is used as a checksum to ensure UA and Push Server have the same state. If a mismatch occurs, it is resolved using the Registration Sync Protocol.
* <tt>updates</tt> - An association of ChannelIDs and versions that have changed since the last time the UA called /update.
* <tt>updates</tt> - An association of ChannelIDs and versions that have changed since the last time the UA called /update.
* <tt>expired</tt> - A list of ChannelIDs which have expired. The UA should remove these from its own database, and ask applications to re-register.
* <tt>expired</tt> - A list of ChannelIDs which have expired. The UA should remove these from its own database, and ask applications to re-register.
Confirmed users
93

edits