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) {
137
137
JPushInterface .setSmartPushEnable (reactContext , enable );
138
138
}
139
139
140
+ @ ReactMethod
141
+ public void setDataInsightsEnable (boolean enable ) {
142
+ JPushInterface .setDataInsightsEnable (reactContext , enable );
143
+ }
144
+
140
145
@ ReactMethod
141
146
public void setGeofenceEnable (boolean enable ) {
142
147
JPushInterface .setGeofenceEnable (reactContext , enable );
Original file line number Diff line number Diff line change @@ -525,6 +525,15 @@ export default class JPush {
525
525
*/
526
526
static setSmartPushEnable ( enable : boolean ) : void ;
527
527
528
+ /**
529
+ * 设置应用数据洞察
530
+ *
531
+ *
532
+ * @param {boolean } enable, YES:开启,NO:关闭,默认是开启。
533
+ *
534
+ */
535
+ static setDataInsightsEnable ( enable : boolean ) : void ;
536
+
528
537
/**
529
538
* 数据采集控制, YES:开启,NO:关闭, 默认开启
530
539
*
Original file line number Diff line number Diff line change @@ -730,6 +730,13 @@ export default class JPush {
730
730
JPushModule . setSmartPushEnable ( enable )
731
731
}
732
732
}
733
+ static setDataInsightsEnable ( enable ) {
734
+ if ( Platform . OS == "ios" ) {
735
+
736
+ } else if ( Platform . OS == "android" ) {
737
+ JPushModule . setDataInsightsEnable ( enable )
738
+ }
739
+ }
733
740
static setGeofenceEnable ( enable ) {
734
741
if ( Platform . OS == "ios" ) {
735
742
} else if ( Platform . OS == "android" ) {
Original file line number Diff line number Diff line change 6
6
"types" : " index.d.ts" ,
7
7
"license" : " ISC" ,
8
8
"author" : " wicked.tc130" ,
9
- "version" : " 3.1.5 " ,
9
+ "version" : " 3.1.6 " ,
10
10
"repository" : {
11
11
"type" : " git" ,
12
12
"url" : " https://github.com/jpush/jpush-react-native"
You can’t perform that action at this time.
0 commit comments