File tree Expand file tree Collapse file tree 5 files changed +22
-1
lines changed
src/main/java/cn/jiguang/plugins/push Expand file tree Collapse file tree 5 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,11 @@ public void setSmartPushEnable(boolean enable) {
137137 JPushInterface .setSmartPushEnable (reactContext , enable );
138138 }
139139
140+ @ ReactMethod
141+ public void setDataInsightsEnable (boolean enable ) {
142+ JPushInterface .setDataInsightsEnable (reactContext , enable );
143+ }
144+
140145 @ ReactMethod
141146 public void setGeofenceEnable (boolean enable ) {
142147 JPushInterface .setGeofenceEnable (reactContext , enable );
Original file line number Diff line number Diff line change @@ -525,6 +525,15 @@ export default class JPush {
525525 */
526526 static setSmartPushEnable ( enable : boolean ) : void ;
527527
528+ /**
529+ * 设置应用数据洞察
530+ *
531+ *
532+ * @param {boolean } enable, YES:开启,NO:关闭,默认是开启。
533+ *
534+ */
535+ static setDataInsightsEnable ( enable : boolean ) : void ;
536+
528537/**
529538 * 数据采集控制, YES:开启,NO:关闭, 默认开启
530539 *
Original file line number Diff line number Diff line change @@ -730,6 +730,13 @@ export default class JPush {
730730 JPushModule . setSmartPushEnable ( enable )
731731 }
732732 }
733+ static setDataInsightsEnable ( enable ) {
734+ if ( Platform . OS == "ios" ) {
735+
736+ } else if ( Platform . OS == "android" ) {
737+ JPushModule . setDataInsightsEnable ( enable )
738+ }
739+ }
733740 static setGeofenceEnable ( enable ) {
734741 if ( Platform . OS == "ios" ) {
735742 } else if ( Platform . OS == "android" ) {
Original file line number Diff line number Diff line change 66 "types" : " index.d.ts" ,
77 "license" : " ISC" ,
88 "author" : " wicked.tc130" ,
9- "version" : " 3.1.5 " ,
9+ "version" : " 3.1.6 " ,
1010 "repository" : {
1111 "type" : " git" ,
1212 "url" : " https://github.com/jpush/jpush-react-native"
You can’t perform that action at this time.
0 commit comments