mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-05-27 00:00:12 +08:00
5.9.0: android 5.9.0 ios:5.9.0
This commit is contained in:
@@ -197,6 +197,20 @@ public class JPushPlugin extends CordovaPlugin {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
static void transmitNotifyButtonClick( JSONObject data) {
|
||||
if (instance == null) {
|
||||
return;
|
||||
}
|
||||
String format = "window.plugins.jPushPlugin.receiveNotifyButtonClickCallback(%s);";
|
||||
final String js = String.format(format, data.toString());
|
||||
cordovaActivity.runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
instance.webView.loadUrl("javascript:" + js);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
static void transmitNotificationOpen(JSONObject data) {
|
||||
|
||||
Reference in New Issue
Block a user