Explorar el Código

Set device as not ready onDestroy

Sebastián Katzer hace 10 años
padre
commit
7a3278345d
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9 0
      src/android/LocalNotification.java

+ 9 - 0
src/android/LocalNotification.java

@@ -90,6 +90,15 @@ public class LocalNotification extends CordovaPlugin {
         isInBackground = false;
     }
 
+    /**
+     * The final call you receive before your activity is destroyed.
+     */
+    @Override
+    public void onDestroy() {
+        deviceready = false;
+        isInBackground = true;
+    }
+
     /**
      * Executes the request.
      *