增加了打开通知的event回调

This commit is contained in:
zhangqinghe
2015-01-27 18:19:16 +08:00
parent e945bcf53d
commit 27ebdd6809
2 changed files with 19 additions and 1 deletions
+5
View File
@@ -144,6 +144,11 @@ public class JPushPlugin extends CordovaPlugin {
data.toString());
try {
instance.webView.sendJavascript(js);
String jsEvent=String
.format("cordova.fireDocumentEvent('jpush.openNotification',%s)",
data.toString());
instance.webView.sendJavascript(jsEvent);
} catch (NullPointerException e) {
} catch (Exception e) {