0
0
Fork 0
mirror of https://github.com/YTVanced/VancedMicroG synced 2024-11-28 06:03:00 +00:00

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

View file

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