WebAPI/SimplePush/Protocol: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 228: Line 228:
=== Notification ===
=== Notification ===


=== AppServer -> PushServer ===
==== AppServer -> PushServer ====


The AppServer MUST make a HTTP '''PUT''' request to the Endpoint received from the App.
The AppServer MUST make a HTTP '''PUT''' request to the Endpoint received from the App.
The body of the request MUST contain the string "version=N" and the Content-Type MUST be <tt>application/x-www-form-urlencoded</tt>.
The body of the request MUST contain the string "version=N" and the Content-Type MUST be <tt>application/x-www-form-urlencoded</tt>.


=== PushServer -> AppServer ===
==== PushServer -> AppServer ====


The HTTP response status code indicates if the request was successful.
The HTTP response status code indicates if the request was successful.
Line 242: Line 242:
The HTTP response body SHOULD be empty.
The HTTP response body SHOULD be empty.


=== PushServer -> UserAgent ===
==== PushServer -> UserAgent ====


Notifications are '''acknowledged''' by the UserAgent.  PushServers should
Notifications are '''acknowledged''' by the UserAgent.  PushServers should
Line 255: Line 255:
:The list contains one or more {"channelID": "id", "version": N } pairs.
:The list contains one or more {"channelID": "id", "version": N } pairs.


=== UserAgent -> PushServer ===
==== UserAgent -> PushServer ====


It is RECOMMENDED that the UserAgent try to batch all pending acknowledgements into fewer messages.
It is RECOMMENDED that the UserAgent try to batch all pending acknowledgements into fewer messages.
Confirmed users
93

edits

Navigation menu