From 3c1d9f0f6b273be4fb64041af16eee47fd0820ff Mon Sep 17 00:00:00 2001 From: Rotem Shoshan Date: Tue, 5 May 2015 08:04:26 +0300 Subject: [PATCH] Send extras even when in background - that way we can retrieve the notification and process it. --- src/android/com/plugin/gcm/GCMIntentService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/com/plugin/gcm/GCMIntentService.java b/src/android/com/plugin/gcm/GCMIntentService.java index caee145e..b02fb511 100644 --- a/src/android/com/plugin/gcm/GCMIntentService.java +++ b/src/android/com/plugin/gcm/GCMIntentService.java @@ -70,7 +70,7 @@ protected void onMessage(Context context, Intent intent) { } else { extras.putBoolean("foreground", false); - + PushPlugin.sendExtras(extras); // Send a notification if there is a message if (extras.getString("message") != null && extras.getString("message").length() != 0) { createNotification(context, extras);