更新安卓jpush570+新增setDataInsightsEnable接口+更新版本号为5.7.0

This commit is contained in:
huangshuni
2025-05-09 14:53:12 +08:00
parent f140784c9c
commit 795242e0c9
5 changed files with 20 additions and 3 deletions
+11
View File
@@ -285,6 +285,17 @@ public class JPushPlugin extends CordovaPlugin {
}
}
void setDataInsightsEnable(JSONArray data, CallbackContext callbackContext) {
boolean mode;
try {
mode = data.getBoolean(0);
JPushInterface.setDataInsightsEnable(mContext,mode);
callbackContext.success();
} catch (JSONException e) {
e.printStackTrace();
}
}
void stopPush(JSONArray data, CallbackContext callbackContext) {
JPushInterface.stopPush(mContext);
callbackContext.success();