Skip to content

Commit

Permalink
Add google.sent_time extra to C2DM receive intent
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobtt committed Apr 28, 2024
1 parent 827a8b9 commit 852542b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public final class GcmConstants {
public static final String EXTRA_SENDER_LEGACY = "legacy.sender";
public static final String EXTRA_SEND_TO = "google.to";
public static final String EXTRA_SEND_FROM = "google.from";
public static final String EXTRA_SENT_TIME = "google.sent_time";
public static final String EXTRA_SIGNATURE = "sig";
public static final String EXTRA_SUBSCIPTION = "subscription";
public static final String EXTRA_SUBTYPE = "subtype";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ private void handleAppMessage(DataMessageStanza msg) {
intent.setAction(ACTION_C2DM_RECEIVE);
intent.putExtra(EXTRA_FROM, msg.from);
intent.putExtra(EXTRA_MESSAGE_ID, msg.id);
intent.putExtra(EXTRA_SENT_TIME, msg.sent);
if (msg.persistent_id != null) intent.putExtra(EXTRA_MESSAGE_ID, msg.persistent_id);
if (msg.token != null) intent.putExtra(EXTRA_COLLAPSE_KEY, msg.token);
if (msg.raw_data != null) {
Expand Down

0 comments on commit 852542b

Please sign in to comment.