mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-04-20 14:59:04 +08:00
修复应用在后台不能触发事件监听函数的 Bug
This commit is contained in:
parent
381395acaf
commit
b4c02a96d5
@ -206,9 +206,6 @@ public class JPushPlugin extends CordovaPlugin {
|
|||||||
if (instance == null) {
|
if (instance == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (JPushPlugin.shouldCacheMsg) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
JSONObject data = openNotificationObject(alert, extras);
|
JSONObject data = openNotificationObject(alert, extras);
|
||||||
String format = "window.plugins.jPushPlugin.receiveNotificationInAndroidCallback('%s');";
|
String format = "window.plugins.jPushPlugin.receiveNotificationInAndroidCallback('%s');";
|
||||||
final String js = String.format(format, data.toString());
|
final String js = String.format(format, data.toString());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user