react-native-notifyvisitors 4.5.0 → 4.5.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.
Files changed (21) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/src/main/java/com/rn_notifyvisitors/RNNotifyvisitorsModule.java +1 -1
  3. package/index.js +13 -6
  4. package/ios/RNNotifyvisitors/RNNotifyvisitors.m +20 -1
  5. package/ios/RNNotifyvisitors.xcodeproj/project.pbxproj +4 -4
  6. package/ios/notifyvisitors.xcframework/Info.plist +6 -6
  7. package/ios/notifyvisitors.xcframework/ios-arm64/notifyvisitors.framework/Headers/notifyvisitors.h +0 -1
  8. package/ios/notifyvisitors.xcframework/ios-arm64/notifyvisitors.framework/Info.plist +0 -0
  9. package/ios/notifyvisitors.xcframework/ios-arm64/notifyvisitors.framework/_CodeSignature/CodeResources +3 -3
  10. package/ios/notifyvisitors.xcframework/ios-arm64/notifyvisitors.framework/notifyvisitors +0 -0
  11. package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitors.framework/Versions/A/Headers/notifyvisitors.h +0 -1
  12. package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitors.framework/Versions/A/Resources/Assets.car +0 -0
  13. package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitors.framework/Versions/A/Resources/Info.plist +3 -3
  14. package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitors.framework/Versions/A/_CodeSignature/CodeResources +5 -5
  15. package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-maccatalyst/notifyvisitors.framework/Versions/A/notifyvisitors +0 -0
  16. package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-simulator/notifyvisitors.framework/Headers/notifyvisitors.h +0 -1
  17. package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-simulator/notifyvisitors.framework/Info.plist +0 -0
  18. package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-simulator/notifyvisitors.framework/_CodeSignature/CodeResources +3 -3
  19. package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-simulator/notifyvisitors.framework/notifyvisitors +0 -0
  20. package/package.json +1 -1
  21. package/react-native-notifyvisitors.podspec +1 -1
@@ -35,7 +35,7 @@ android {
35
35
  dependencies {
36
36
  implementation fileTree(dir: 'libs', include: ['*.jar'])
37
37
  implementation 'com.facebook.react:react-native:+'
38
- implementation('com.notifyvisitors.notifyvisitors:notifyvisitors:v5.5.0') {
38
+ implementation('com.notifyvisitors.notifyvisitors:notifyvisitors:v5.5.3') {
39
39
  exclude group: 'com.google.firebase', module: 'firebase-core'
40
40
  }
41
41
  implementation platform('com.google.firebase:firebase-bom:30.3.1')
@@ -49,7 +49,7 @@ public class RNNotifyvisitorsModule extends ReactContextBaseJavaModule implement
49
49
 
50
50
  private final ReactApplicationContext reactContext;
51
51
  private static final String TAG = "RN-NotifyVisitors";
52
- private static final String PLUGIN_VERSION = "4.5.0";
52
+ private static final String PLUGIN_VERSION = "4.5.1";
53
53
 
54
54
  private String PUSH_BANNER_CLICK_EVENT = "nv_push_banner_click";
55
55
  private String CHAT_BOT_BUTTON_CLICK = "nv_chat_bot_button_click";
package/index.js CHANGED
@@ -60,7 +60,12 @@ export default class Notifyvisitors {
60
60
  console.log("NV- Show InApp Message !!");
61
61
  try {
62
62
  CALLBACKS_STACK[NV_CALLBACKS.NV_SHOW] = nvCallback;
63
- RNNotifyvisitors.showInAppMessage(tokens, customObjects, fragmentName, nvCallback);
63
+ RNNotifyvisitors.showInAppMessage(
64
+ tokens,
65
+ customObjects,
66
+ fragmentName,
67
+ nvCallback
68
+ );
64
69
  } catch (e) {
65
70
  console.log(e);
66
71
  }
@@ -90,7 +95,11 @@ export default class Notifyvisitors {
90
95
  dismissValue = parseInt(dismissValue);
91
96
  }
92
97
  CALLBACKS_STACK[NV_CALLBACKS.NV_CENTER] = callback;
93
- RNNotifyvisitors.openNotificationCenter(mAppInboxInfo, dismissValue, callback);
98
+ RNNotifyvisitors.openNotificationCenter(
99
+ mAppInboxInfo,
100
+ dismissValue,
101
+ callback
102
+ );
94
103
  } catch (e) {
95
104
  console.log(e);
96
105
  }
@@ -482,13 +491,11 @@ export default class Notifyvisitors {
482
491
  }
483
492
  }
484
493
 
485
- /* - Trck Screen */
494
+ /* - Trck Screen */
486
495
  static trackScreen(screenName) {
487
496
  console.log("NV- Track Screen !!");
488
497
  try {
489
- RNNotifyvisitors.trackScreen(
490
- screenName
491
- );
498
+ RNNotifyvisitors.trackScreen(screenName);
492
499
  } catch (e) {
493
500
  console.log(e);
494
501
  }
@@ -23,7 +23,7 @@ int nvCheckPushClickTimeCounter = 0;
23
23
 
24
24
  @implementation RNNotifyvisitors
25
25
 
26
- static NSString *const kNVPluginVersion = @"4.5.0";
26
+ static NSString *const kNVPluginVersion = @"4.5.1";
27
27
 
28
28
  - (dispatch_queue_t)methodQueue{
29
29
  return dispatch_get_main_queue();
@@ -32,10 +32,21 @@ static NSString *const kNVPluginVersion = @"4.5.0";
32
32
 
33
33
  //app delegate methods
34
34
 
35
+ + (instancetype)sharedInstance {
36
+ static RNNotifyvisitors *sharedInstance = nil;
37
+ static dispatch_once_t onceToken;
38
+ dispatch_once(&onceToken, ^{
39
+ sharedInstance = [[RNNotifyvisitors alloc] init];
40
+ });
41
+ return sharedInstance;
42
+ }
43
+
35
44
  +(void)initializeWithBrandId:(NSInteger)brandID secretKey:(NSString *)secretKey launchingOptions:(NSDictionary *)launchingOptions {
36
45
 
37
46
  NSLog(@"RN-NotifyVisitors : INITIALIZE WITH BRANDID SECRETKEY & LAUNCHING-OPTIONS !!");
38
47
  NSLog(@"RN-NotifyVisitors PLUGIN VERSION : %@ !!", kNVPluginVersion);
48
+
49
+ [[self sharedInstance] nvTurnOffAutomaticScreenViewEventForFlutter];
39
50
  NSString *nvMode = nil;
40
51
  #if DEBUG
41
52
  nvMode = @"debug";
@@ -48,6 +59,8 @@ NSLog(@"RN-NotifyVisitors PLUGIN VERSION : %@ !!", kNVPluginVersion);
48
59
  +(void)Initialize{
49
60
  NSLog(@"RN-NotifyVisitors : INITIALIZE !!");
50
61
  NSLog(@"RN-NotifyVisitors PLUGIN VERSION : %@ !!", kNVPluginVersion);
62
+
63
+ [[self sharedInstance] nvTurnOffAutomaticScreenViewEventForFlutter];
51
64
  NSString *nvMode = nil;
52
65
  #if DEBUG
53
66
  nvMode = @"debug";
@@ -301,5 +314,11 @@ NSLog(@"RN-NotifyVisitors PLUGIN VERSION : %@ !!", kNVPluginVersion);
301
314
  });
302
315
  }
303
316
 
317
+ -(void)nvTurnOffAutomaticScreenViewEventForFlutter {
318
+ NSUserDefaults *nvflutterCustomUserDefaults = [[NSUserDefaults alloc] initWithSuiteName: @"com.cp.plugin.notifyvisitors"];
319
+ [nvflutterCustomUserDefaults setBool: YES forKey: @"nv_isSDKRunningInCP"];
320
+ [nvflutterCustomUserDefaults synchronize];
321
+ }
322
+
304
323
  @end
305
324
 
@@ -9,7 +9,7 @@
9
9
  /* Begin PBXBuildFile section */
10
10
  138AE09F22A7ACA600F403E1 /* RNNVExtensionService.m in Sources */ = {isa = PBXBuildFile; fileRef = 138AE09E22A7ACA600F403E1 /* RNNVExtensionService.m */; };
11
11
  13B25F2D22BA35B000C4D0B7 /* RCTNVEventEmitter.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B25F2C22BA35B000C4D0B7 /* RCTNVEventEmitter.m */; };
12
- 3567AE9F2DCE2A9000E622AE /* notifyvisitors.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3567AE9E2DCE2A9000E622AE /* notifyvisitors.xcframework */; };
12
+ 352527672E019B11002B0622 /* notifyvisitors.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 352527662E019B11002B0622 /* notifyvisitors.xcframework */; };
13
13
  B3E7B58A1CC2AC0600A0062D /* RNNotifyvisitors.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNNotifyvisitors.m */; };
14
14
  DC31F4E523BC9CC900AAB2DB /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DC31F4E423BC9CC900AAB2DB /* SystemConfiguration.framework */; };
15
15
  /* End PBXBuildFile section */
@@ -32,7 +32,7 @@
32
32
  138AE09E22A7ACA600F403E1 /* RNNVExtensionService.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNVExtensionService.m; sourceTree = "<group>"; };
33
33
  13B25F2B22BA35B000C4D0B7 /* RCTNVEventEmitter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTNVEventEmitter.h; sourceTree = "<group>"; };
34
34
  13B25F2C22BA35B000C4D0B7 /* RCTNVEventEmitter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTNVEventEmitter.m; sourceTree = "<group>"; };
35
- 3567AE9E2DCE2A9000E622AE /* notifyvisitors.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = notifyvisitors.xcframework; sourceTree = "<group>"; };
35
+ 352527662E019B11002B0622 /* notifyvisitors.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = notifyvisitors.xcframework; sourceTree = "<group>"; };
36
36
  B3E7B5881CC2AC0600A0062D /* RNNotifyvisitors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNNotifyvisitors.h; sourceTree = "<group>"; };
37
37
  B3E7B5891CC2AC0600A0062D /* RNNotifyvisitors.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNotifyvisitors.m; sourceTree = "<group>"; };
38
38
  DC31F4E423BC9CC900AAB2DB /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/SystemConfiguration.framework; sourceTree = DEVELOPER_DIR; };
@@ -44,7 +44,7 @@
44
44
  buildActionMask = 2147483647;
45
45
  files = (
46
46
  DC31F4E523BC9CC900AAB2DB /* SystemConfiguration.framework in Frameworks */,
47
- 3567AE9F2DCE2A9000E622AE /* notifyvisitors.xcframework in Frameworks */,
47
+ 352527672E019B11002B0622 /* notifyvisitors.xcframework in Frameworks */,
48
48
  );
49
49
  runOnlyForDeploymentPostprocessing = 0;
50
50
  };
@@ -62,7 +62,7 @@
62
62
  58B511D21A9E6C8500147676 = {
63
63
  isa = PBXGroup;
64
64
  children = (
65
- 3567AE9E2DCE2A9000E622AE /* notifyvisitors.xcframework */,
65
+ 352527662E019B11002B0622 /* notifyvisitors.xcframework */,
66
66
  DC4962D123BE131B005E63F5 /* RNNotifyvisitors */,
67
67
  134814211AA4EA7D00B7C361 /* Products */,
68
68
  DC31F4E323BC9CC900AAB2DB /* Frameworks */,
@@ -6,9 +6,9 @@
6
6
  <array>
7
7
  <dict>
8
8
  <key>BinaryPath</key>
9
- <string>notifyvisitors.framework/notifyvisitors</string>
9
+ <string>notifyvisitors.framework/Versions/A/notifyvisitors</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64_x86_64-simulator</string>
11
+ <string>ios-arm64_x86_64-maccatalyst</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>notifyvisitors.framework</string>
14
14
  <key>SupportedArchitectures</key>
@@ -19,13 +19,13 @@
19
19
  <key>SupportedPlatform</key>
20
20
  <string>ios</string>
21
21
  <key>SupportedPlatformVariant</key>
22
- <string>simulator</string>
22
+ <string>maccatalyst</string>
23
23
  </dict>
24
24
  <dict>
25
25
  <key>BinaryPath</key>
26
- <string>notifyvisitors.framework/Versions/A/notifyvisitors</string>
26
+ <string>notifyvisitors.framework/notifyvisitors</string>
27
27
  <key>LibraryIdentifier</key>
28
- <string>ios-arm64_x86_64-maccatalyst</string>
28
+ <string>ios-arm64_x86_64-simulator</string>
29
29
  <key>LibraryPath</key>
30
30
  <string>notifyvisitors.framework</string>
31
31
  <key>SupportedArchitectures</key>
@@ -36,7 +36,7 @@
36
36
  <key>SupportedPlatform</key>
37
37
  <string>ios</string>
38
38
  <key>SupportedPlatformVariant</key>
39
- <string>maccatalyst</string>
39
+ <string>simulator</string>
40
40
  </dict>
41
41
  <dict>
42
42
  <key>BinaryPath</key>
@@ -82,7 +82,6 @@ typedef void(^nv_UID)(NSString *_Nullable);
82
82
 
83
83
  #pragma mark - INITIAL INTEGRATION METHODS (INITIALIZE Notifyvisitors SDK and Basic Integration Methods)
84
84
 
85
- //+(NVSDKCallbackUtils *_Nullable)nvRreturnSwiftClassInstance;
86
85
  +(void)Initialize:(NSString *_Nullable)nvMode;
87
86
 
88
87
  +(void)initializeWithBrandId:(NSInteger)brandID secretKey:(NSString *_Nullable)secretKey appMode:(NSString *_Nullable)nvMode launchingOptions:(NSDictionary *_Nullable)launchingOptions;
@@ -10,11 +10,11 @@
10
10
  </data>
11
11
  <key>Headers/notifyvisitors.h</key>
12
12
  <data>
13
- yyx5bFK3Zdjvz47sjJwhG67++Ao=
13
+ Q/63KHXhLos4bTfN5trsOrD3Pug=
14
14
  </data>
15
15
  <key>Info.plist</key>
16
16
  <data>
17
- Luhr6Y0jZjD4JP3kr8nlQk9WnkM=
17
+ vIEI70IiruUFQXGmDSLCKN/5j0I=
18
18
  </data>
19
19
  <key>Modules/module.modulemap</key>
20
20
  <data>
@@ -38,7 +38,7 @@
38
38
  <dict>
39
39
  <key>hash2</key>
40
40
  <data>
41
- zN69qoD1N6vPaXw0hbW+ly7+L5WJGIkaNTN0b+pCTbQ=
41
+ Oeyg+vp6JNxbo0xFTN7AemS3NrzYg3fFQZfw/DcADjk=
42
42
  </data>
43
43
  </dict>
44
44
  <key>Modules/module.modulemap</key>
@@ -82,7 +82,6 @@ typedef void(^nv_UID)(NSString *_Nullable);
82
82
 
83
83
  #pragma mark - INITIAL INTEGRATION METHODS (INITIALIZE Notifyvisitors SDK and Basic Integration Methods)
84
84
 
85
- //+(NVSDKCallbackUtils *_Nullable)nvRreturnSwiftClassInstance;
86
85
  +(void)Initialize:(NSString *_Nullable)nvMode;
87
86
 
88
87
  +(void)initializeWithBrandId:(NSInteger)brandID secretKey:(NSString *_Nullable)secretKey appMode:(NSString *_Nullable)nvMode launchingOptions:(NSDictionary *_Nullable)launchingOptions;
@@ -3,7 +3,7 @@
3
3
  <plist version="1.0">
4
4
  <dict>
5
5
  <key>BuildMachineOSBuild</key>
6
- <string>23H527</string>
6
+ <string>23H626</string>
7
7
  <key>CFBundleDevelopmentRegion</key>
8
8
  <string>en</string>
9
9
  <key>CFBundleExecutable</key>
@@ -17,13 +17,13 @@
17
17
  <key>CFBundlePackageType</key>
18
18
  <string>FMWK</string>
19
19
  <key>CFBundleShortVersionString</key>
20
- <string>7.3.0</string>
20
+ <string>7.3.1</string>
21
21
  <key>CFBundleSupportedPlatforms</key>
22
22
  <array>
23
23
  <string>MacOSX</string>
24
24
  </array>
25
25
  <key>CFBundleVersion</key>
26
- <string>7.3.0</string>
26
+ <string>7.3.1</string>
27
27
  <key>DTCompiler</key>
28
28
  <string>com.apple.compilers.llvm.clang.1_0</string>
29
29
  <key>DTPlatformBuild</key>
@@ -6,11 +6,11 @@
6
6
  <dict>
7
7
  <key>Resources/Assets.car</key>
8
8
  <data>
9
- DKvKw+KOoP+BuCaxVR2CCDqYwLg=
9
+ b6D8i5nTYBBKp5ip3N+6HbnYzmM=
10
10
  </data>
11
11
  <key>Resources/Info.plist</key>
12
12
  <data>
13
- vWXhao0Kc8F6tDsWG/QxbzTjKHY=
13
+ RmTURhZzBVJC4ijg3ubCNYzZ4xM=
14
14
  </data>
15
15
  <key>Resources/PrivacyInfo.xcprivacy</key>
16
16
  <data>
@@ -23,7 +23,7 @@
23
23
  <dict>
24
24
  <key>hash2</key>
25
25
  <data>
26
- zN69qoD1N6vPaXw0hbW+ly7+L5WJGIkaNTN0b+pCTbQ=
26
+ Oeyg+vp6JNxbo0xFTN7AemS3NrzYg3fFQZfw/DcADjk=
27
27
  </data>
28
28
  </dict>
29
29
  <key>Modules/module.modulemap</key>
@@ -37,14 +37,14 @@
37
37
  <dict>
38
38
  <key>hash2</key>
39
39
  <data>
40
- qxSUb7UhK6CS7afqwxclISE6BFCU7KDEKZoe3fIeI/8=
40
+ /MIOOT4V/KOF7bhJBMG9RHcnF73yJALCJIPULYpzD24=
41
41
  </data>
42
42
  </dict>
43
43
  <key>Resources/Info.plist</key>
44
44
  <dict>
45
45
  <key>hash2</key>
46
46
  <data>
47
- yH31exFnY0aGzcyF1NYH/GejxTuw+hbNskhl318ZvK4=
47
+ zGy3HTGlE+ta222G2SeS1BO6giAjwz+qj/fCzax9Nz4=
48
48
  </data>
49
49
  </dict>
50
50
  <key>Resources/PrivacyInfo.xcprivacy</key>
@@ -82,7 +82,6 @@ typedef void(^nv_UID)(NSString *_Nullable);
82
82
 
83
83
  #pragma mark - INITIAL INTEGRATION METHODS (INITIALIZE Notifyvisitors SDK and Basic Integration Methods)
84
84
 
85
- //+(NVSDKCallbackUtils *_Nullable)nvRreturnSwiftClassInstance;
86
85
  +(void)Initialize:(NSString *_Nullable)nvMode;
87
86
 
88
87
  +(void)initializeWithBrandId:(NSInteger)brandID secretKey:(NSString *_Nullable)secretKey appMode:(NSString *_Nullable)nvMode launchingOptions:(NSDictionary *_Nullable)launchingOptions;
@@ -10,11 +10,11 @@
10
10
  </data>
11
11
  <key>Headers/notifyvisitors.h</key>
12
12
  <data>
13
- yyx5bFK3Zdjvz47sjJwhG67++Ao=
13
+ Q/63KHXhLos4bTfN5trsOrD3Pug=
14
14
  </data>
15
15
  <key>Info.plist</key>
16
16
  <data>
17
- 97aWrkNud7qysJP8Jv8OLpO927c=
17
+ hXY2y1cfkZK3q2sy8A21HmXyjV8=
18
18
  </data>
19
19
  <key>Modules/module.modulemap</key>
20
20
  <data>
@@ -38,7 +38,7 @@
38
38
  <dict>
39
39
  <key>hash2</key>
40
40
  <data>
41
- zN69qoD1N6vPaXw0hbW+ly7+L5WJGIkaNTN0b+pCTbQ=
41
+ Oeyg+vp6JNxbo0xFTN7AemS3NrzYg3fFQZfw/DcADjk=
42
42
  </data>
43
43
  </dict>
44
44
  <key>Modules/module.modulemap</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-notifyvisitors",
3
- "version": "4.5.0",
3
+ "version": "4.5.1",
4
4
  "description": "React Native Notifyvisitors SDK for push notifications and surveys",
5
5
  "main": "index",
6
6
  "scripts": {
@@ -23,5 +23,5 @@ Pod::Spec.new do |s|
23
23
  # pod 'React', :path => '../node_modules/react-native/'
24
24
 
25
25
  # The Native Notifyvisitors-iOS-SDK from cocoapods.
26
- s.dependency 'notifyvisitors', '7.3.0'
26
+ s.dependency 'notifyvisitors', '7.3.1'
27
27
  end