Commit ecb94e6d authored by Archana Naik's avatar Archana Naik
Browse files

[PushPlugin] Coldstart property missing from notification event in JavaScript...

[PushPlugin] Coldstart property missing from notification event in JavaScript in Cordova Push Notifications Plugin
Added logic for Coldstart support. Client JS can parse this flag.
parent 25691348
Loading
Loading
Loading
Loading
+1 −0
Changes for src/amazon/ADMHandlerActivity.java: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@ public class ADMHandlerActivity extends Activity {
        if (extras != null) {
            Bundle originalExtras = extras
                .getBundle(ADMMessageHandler.PUSH_BUNDLE);
            originalExtras.putBoolean(PushPlugin.COLDSTART, !isCordovaActive);
            ADMMessageHandler.cancelNotification(this);
            PushPlugin.sendExtras(originalExtras);
            // clean up the noticiationIntent extra