Commit a0f2427e authored by Bob Easterday's avatar Bob Easterday
Browse files

Merge pull request #102 from scotthooker/master

#85 - new approach
parents 8d91c7d8 fb22a698
Loading
Loading
Loading
Loading
+2 −2
Changes for src/android/com/plugin/gcm/GCMIntentService.java: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -69,8 +69,8 @@ public class GCMIntentService extends GCMBaseIntentService {
		{
			PushPlugin.sendExtras(extras);

			// Send a notification if there is a message and not in foreground
			if (!PushPlugin.isInForeground() && extras.getString("message").length() != 0) {
			// Send a notification if there is a message
			if (extras.getString("message").length() != 0) {
				createNotification(context, extras);
			}
		}
+0 −1
Changes for src/android/com/plugin/gcm/PushPlugin.java: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -234,7 +234,6 @@ public class PushPlugin extends CordovaPlugin {
		GCMRegistrar.onDestroy(getApplicationContext());
		gWebView = null;
		gECB = null;
		gForeground = false;
		super.onDestroy();
	}
}