Commit 5bc371c4 authored by Bob Easterday's avatar Bob Easterday
Browse files

Make notifications more consistent when not in the foreground

parent a0f2427e
Loading
Loading
Loading
Loading
+1 −1
Changes for plugin.xml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
    xmlns:android="http://schemas.android.com/apk/res/android"
    id="com.phonegap.plugins.PushPlugin"
    version="2.0.4">
    version="2.0.5">

    <name>PushPlugin</name>
	<author>Bob Easterday</author>
+3 −1
Changes for src/android/com/plugin/gcm/PushPlugin.java: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ public class PushPlugin extends CordovaPlugin {
	private static String gECB;
	private static String gSenderID;
	private static Bundle gCachedExtras = null;
    private static boolean gForeground = true;
    private static boolean gForeground = false;

	/**
	 * Gets the application context from cordova's main activity.
@@ -234,6 +234,8 @@ public class PushPlugin extends CordovaPlugin {
		GCMRegistrar.onDestroy(getApplicationContext());
		gWebView = null;
		gECB = null;
        gForeground = false;
		
		super.onDestroy();
	}
}