react-native-notifyvisitors 4.2.2 → 4.2.4
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.
package/android/build.gradle
CHANGED
|
@@ -34,7 +34,7 @@ android {
|
|
|
34
34
|
dependencies {
|
|
35
35
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
36
36
|
implementation 'com.facebook.react:react-native:+'
|
|
37
|
-
implementation 'com.notifyvisitors.notifyvisitors:notifyvisitors:v5.4.
|
|
37
|
+
implementation 'com.notifyvisitors.notifyvisitors:notifyvisitors:v5.4.4'
|
|
38
38
|
|
|
39
39
|
implementation platform('com.google.firebase:firebase-bom:30.3.1')
|
|
40
40
|
implementation ('com.google.firebase:firebase-messaging')
|
|
@@ -41,7 +41,7 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
|
|
|
41
41
|
|
|
42
42
|
private final ReactApplicationContext reactContext;
|
|
43
43
|
private static final String TAG = "RN-NotifyVisitors";
|
|
44
|
-
private static final String PLUGIN_VERSION = "4.2.
|
|
44
|
+
private static final String PLUGIN_VERSION = "4.2.4";
|
|
45
45
|
|
|
46
46
|
private String PUSH_BANNER_CLICK_EVENT = "nv_push_banner_click";
|
|
47
47
|
private String CHAT_BOT_BUTTON_CLICK = "nv_chat_bot_button_click";
|
|
@@ -902,6 +902,7 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
|
|
|
902
902
|
String buttonTwoBorderRadius = campaignInfo.getString("buttonTwoBorderRadius");
|
|
903
903
|
String numberOfSessions = campaignInfo.getString("numberOfSessions");
|
|
904
904
|
String resumeInDays = campaignInfo.getString("resumeInDays");
|
|
905
|
+
String numberOfTimesPerSession = campaignInfo.getString("numberOfTimesPerSession");
|
|
905
906
|
|
|
906
907
|
NVPopupDesign design = new NVPopupDesign();
|
|
907
908
|
design.setTitle(title);
|
|
@@ -921,6 +922,7 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
|
|
|
921
922
|
design.setButtonTwoBorderRadius(Integer.parseInt(buttonTwoBorderRadius));
|
|
922
923
|
design.setNumberOfSessions(Integer.parseInt(numberOfSessions));
|
|
923
924
|
design.setResumeInDays(Integer.parseInt(resumeInDays));
|
|
925
|
+
design.setNumberOfTimesPerSession(Integer.parseInt(numberOfTimesPerSession));
|
|
924
926
|
mActivity = reactContext.getCurrentActivity();
|
|
925
927
|
if (mActivity != null) {
|
|
926
928
|
mActivity.runOnUiThread(new Runnable() {
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -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.2.
|
|
35
|
+
NSLog(@"RN-NotifyVisitors PLUGIN VERSION : 4.2.4 !!");
|
|
36
36
|
NSString *nvMode = nil;
|
|
37
37
|
#if DEBUG
|
|
38
38
|
nvMode = @"debug";
|