diff --git a/src/android/JPushPlugin.java b/src/android/JPushPlugin.java index 95e797a..ee23659 100644 --- a/src/android/JPushPlugin.java +++ b/src/android/JPushPlugin.java @@ -131,6 +131,13 @@ public class JPushPlugin extends CordovaPlugin { } } + @Override + public void onDestroy() { + super.onDestroy(); + cordovaActivity = null; + instance = null; + } + private static JSONObject getMessageObject(String message, Map extras) { JSONObject data = new JSONObject();