diff --git a/src/android/org/jboss/aerogear/cordova/push/PushPlugin.java b/src/android/org/jboss/aerogear/cordova/push/PushPlugin.java
index <HASH>..<HASH> 100644
--- a/src/android/org/jboss/aerogear/cordova/push/PushPlugin.java
+++ b/src/android/org/jboss/aerogear/cordova/push/PushPlugin.java
@@ -58,7 +58,7 @@ public class PushPlugin extends CordovaPlugin {
   private static CordovaWebView webViewReference;
   private static String javascriptCallback;
   private static Bundle cachedExtras = null;
-  private static boolean foreground = true;
+  private static boolean foreground = false;
 
 
   private SharedPreferences preferences;
@@ -85,6 +85,8 @@ public class PushPlugin extends CordovaPlugin {
 
     Log.v(TAG, "execute: action=" + action);
 
+	foreground = true;
+
     if (REGISTER.equals(action)) {
 
       Log.v(TAG, "execute: data=" + data.toString());
Fix for AGPUSH<I> - create notification when app is closed.