From 5fb1a440c4203b8553e1f7859d0c59620dbfefc5 Mon Sep 17 00:00:00 2001 From: Hevin <328066446@qq.com> Date: Mon, 25 Apr 2016 14:03:57 +0800 Subject: [PATCH] fix bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复应用在后台点击通知无法触发点击事件的 bug。 --- src/android/JPushPlugin.java | 7 +++++++ 1 file changed, 7 insertions(+) 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();