public class PushRouter
extends java.lang.Object
- For PPNS, we provide the last-seen timestamp to the server as part of the handshake. This is used as a cursor into the server-side inbox of recent pushes for this client. - For GCM, we use the history to deduplicate pushes when GCM decides to change the canonical registration id for a client (which can result in duplicate pushes while both the old and new registration id are still valid).
| Modifier and Type | Method and Description |
|---|---|
static PushRouter |
getInstance() |
java.lang.String |
getLastReceivedTimestamp() |
boolean |
handlePush(java.lang.String pushId,
java.lang.String timestamp,
java.lang.String channel,
org.json.JSONObject data) |
public static PushRouter getInstance()
public java.lang.String getLastReceivedTimestamp()
public boolean handlePush(java.lang.String pushId,
java.lang.String timestamp,
java.lang.String channel,
org.json.JSONObject data)