react-native-notifyvisitors 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -36,7 +36,7 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
|
|
|
36
36
|
|
|
37
37
|
private final ReactApplicationContext reactContext;
|
|
38
38
|
private static final String TAG = "RN-NotifyVisitors";
|
|
39
|
-
private static final String PLUGIN_VERSION = "4.1.
|
|
39
|
+
private static final String PLUGIN_VERSION = "4.1.1";
|
|
40
40
|
|
|
41
41
|
private String PUSH_BANNER_CLICK_EVENT = "nv_push_banner_click";
|
|
42
42
|
private String CHAT_BOT_BUTTON_CLICK = "nv_chat_bot_button_click";
|
|
@@ -45,6 +45,7 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
|
|
|
45
45
|
private String EVENT_CALLBACK = "nv_event_callback";
|
|
46
46
|
private String COMMON_SHOW_EVENT_CALLBACK = "nv_common_show_event_callback";
|
|
47
47
|
|
|
48
|
+
String finalData;
|
|
48
49
|
|
|
49
50
|
Callback showCallback;
|
|
50
51
|
Callback eventCallback;
|
|
@@ -76,6 +77,9 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
|
|
|
76
77
|
public void getLinkInfo() {
|
|
77
78
|
try {
|
|
78
79
|
Log.i(TAG, "GET LINK INFO !!");
|
|
80
|
+
if(finalData != null){
|
|
81
|
+
sendEvent(PUSH_BANNER_CLICK_EVENT, finalData);
|
|
82
|
+
}
|
|
79
83
|
} catch (Exception e) {
|
|
80
84
|
Log.i(TAG, "GET LINK INFO ERROR : " + e);
|
|
81
85
|
}
|
|
@@ -460,7 +464,7 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
|
|
|
460
464
|
Log.i(TAG, "INSIDE HANDLE INTENT !!!!");
|
|
461
465
|
|
|
462
466
|
JSONObject dataInfo, finalDataInfo;
|
|
463
|
-
|
|
467
|
+
|
|
464
468
|
|
|
465
469
|
String action = intent.getAction();
|
|
466
470
|
Uri url = intent.getData();
|
|
@@ -32,7 +32,7 @@ int nvCheckPushClickTimeCounter = 0;
|
|
|
32
32
|
|
|
33
33
|
+(void)Initialize{
|
|
34
34
|
NSLog(@"RN-NotifyVisitors : INITIALIZE !!");
|
|
35
|
-
NSLog(@"RN-NotifyVisitors PLUGIN VERSION : 4.1.
|
|
35
|
+
NSLog(@"RN-NotifyVisitors PLUGIN VERSION : 4.1.1 !!");
|
|
36
36
|
NSString *nvMode = nil;
|
|
37
37
|
#if DEBUG
|
|
38
38
|
nvMode = @"debug";
|