Include GCM message ID in app message intent

This commit is contained in:
Moritz Horstmann 2019-04-18 19:50:34 +02:00 committed by Marvin W
parent 3d9a8f4af9
commit 652d7a9104
1 changed files with 1 additions and 0 deletions

View File

@ -459,6 +459,7 @@ public class McsService extends Service implements Handler.Callback {
intent.setAction(ACTION_C2DM_RECEIVE);
intent.setPackage(msg.category);
intent.putExtra(EXTRA_FROM, msg.from);
intent.putExtra(EXTRA_MESSAGE_ID, msg.id);
if (app.wakeForDelivery) {
intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
} else {