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.
@@ -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.1.0'
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.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
@@ -75,4 +75,5 @@ export class PushPromptInfo {
75
75
  buttonTwoBorderRadius: String;
76
76
  numberOfSessions: String;
77
77
  resumeInDays: String;
78
+ numberOfTimesPerSession: String;
78
79
  }
package/index.js CHANGED
@@ -374,6 +374,7 @@ export class PushPromptInfo {
374
374
  this.buttonTwoBorderRadius = "25";
375
375
  this.numberOfSessions = "3";
376
376
  this.resumeInDays = "5";
377
+ this.numberOfTimesPerSession = "2";
377
378
  }
378
379
  }
379
380
 
@@ -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.2 !!");
35
+ NSLog(@"RN-NotifyVisitors PLUGIN VERSION : 4.2.4 !!");
36
36
  NSString *nvMode = nil;
37
37
  #if DEBUG
38
38
  nvMode = @"debug";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-notifyvisitors",
3
- "version": "4.2.2",
3
+ "version": "4.2.4",
4
4
  "description": "React Native Notifyvisitors SDK for push notifications and surveys",
5
5
  "main": "index",
6
6
  "scripts": {