Commit 0aa884c0 authored by Adri Van Houdt's avatar Adri Van Houdt
Browse files

allow forceShow option to always notify

parent 7a0c648d
Loading
Loading
Loading
Loading
+1 −1
Changes for src/android/com/adobe/phonegap/push/GCMIntentService.java: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -88,7 +88,7 @@ public class GCMIntentService extends GCMBaseIntentService implements PushConsta
        Bundle extras = intent.getExtras();
        if (extras != null) {
            // if we are in the foreground, just surface the payload, else post it to the statusbar
            if (PushPlugin.isInForeground()) {
            if (!FORCE_SHOW && PushPlugin.isInForeground()) {
                extras.putBoolean(FOREGROUND, true);
                PushPlugin.sendExtras(extras);
            }
+1 −0
Changes for src/android/com/adobe/phonegap/push/PushConstants.java: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -41,4 +41,5 @@ public interface PushConstants {
    public static final String COUNT = "count";
    public static final String FROM = "from";
    public static final String COLLAPSE_KEY = "collapse_key";
    public static final String FORCE_SHOW = "forceShow";
}
+1 −0
Changes for src/android/com/adobe/phonegap/push/PushPlugin.java: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -80,6 +80,7 @@ public class PushPlugin extends CordovaPlugin implements PushConstants {
                        editor.putBoolean(SOUND, jo.optBoolean(SOUND, true));
                        editor.putBoolean(VIBRATE, jo.optBoolean(VIBRATE, true));
                        editor.putBoolean(CLEAR_NOTIFICATIONS, jo.optBoolean(CLEAR_NOTIFICATIONS, true));
                        editor.putBoolean(FORCE_SHOW, jo.optBoolean(FORCE_SHOW, false));
                        editor.commit();
                    }