react-native-notifyvisitors 4.0.9 → 4.1.2

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.
@@ -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.0.9 !!");
35
+ NSLog(@"RN-NotifyVisitors PLUGIN VERSION : 4.1.2 !!");
36
36
  NSString *nvMode = nil;
37
37
  #if DEBUG
38
38
  nvMode = @"debug";
@@ -9,6 +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
+ 25D52BBA27E20C6C00890D62 /* libnotifyvisitors_6_3_1.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 25D52BB827E20C6C00890D62 /* libnotifyvisitors_6_3_1.a */; };
12
13
  B3E7B58A1CC2AC0600A0062D /* RNNotifyvisitors.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNNotifyvisitors.m */; };
13
14
  DC31F4E523BC9CC900AAB2DB /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DC31F4E423BC9CC900AAB2DB /* SystemConfiguration.framework */; };
14
15
  /* End PBXBuildFile section */
@@ -31,19 +32,19 @@
31
32
  138AE09E22A7ACA600F403E1 /* RNNVExtensionService.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNVExtensionService.m; sourceTree = "<group>"; };
32
33
  13B25F2B22BA35B000C4D0B7 /* RCTNVEventEmitter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RCTNVEventEmitter.h; sourceTree = "<group>"; };
33
34
  13B25F2C22BA35B000C4D0B7 /* RCTNVEventEmitter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTNVEventEmitter.m; sourceTree = "<group>"; };
34
- 253C98EA26411AD000F2E8C9 /* notifyvisitors.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = notifyvisitors.h; sourceTree = "<group>"; };
35
- 253C98EB26411ADC00F2E8C9 /* libnotifyvisitors_6_0_1.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libnotifyvisitors_6_0_1.a; sourceTree = "<group>"; };
36
- 253C98ED26411B4A00F2E8C9 /* nv_NotificationCenterBg@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "nv_NotificationCenterBg@2x.png"; sourceTree = "<group>"; };
37
- 253C98EE26411B4A00F2E8C9 /* nv_deleteIcon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "nv_deleteIcon@2x.png"; sourceTree = "<group>"; };
38
- 253C98EF26411B4B00F2E8C9 /* empty.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = empty.png; sourceTree = "<group>"; };
39
- 253C98F026411B4B00F2E8C9 /* nv_NotificationCenterBg@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "nv_NotificationCenterBg@3x.png"; sourceTree = "<group>"; };
40
- 253C98F126411B4B00F2E8C9 /* nvResourceValues.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = nvResourceValues.plist; sourceTree = "<group>"; };
41
- 253C98F226411B4B00F2E8C9 /* pause.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = pause.png; sourceTree = "<group>"; };
42
- 253C98F326411B4C00F2E8C9 /* nv_NotificationCenterBg.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = nv_NotificationCenterBg.png; sourceTree = "<group>"; };
43
- 253C98F426411B4C00F2E8C9 /* play.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = play.png; sourceTree = "<group>"; };
44
- 253C98F526411B4C00F2E8C9 /* slider_bar.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = slider_bar.png; sourceTree = "<group>"; };
45
- 253C98F626411B4C00F2E8C9 /* nv_deleteIcon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = nv_deleteIcon.png; sourceTree = "<group>"; };
46
- 253C98F726411B4D00F2E8C9 /* slider_barHead.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = slider_barHead.png; sourceTree = "<group>"; };
35
+ 25A29B6B26829CBB00098B92 /* nv_deleteIcon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = nv_deleteIcon.png; sourceTree = "<group>"; };
36
+ 25A29B6D26829CBB00098B92 /* nv_deleteIcon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "nv_deleteIcon@2x.png"; sourceTree = "<group>"; };
37
+ 25A29B6E26829CBB00098B92 /* slider_barHead.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = slider_barHead.png; sourceTree = "<group>"; };
38
+ 25A29B6F26829CBC00098B92 /* empty.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = empty.png; sourceTree = "<group>"; };
39
+ 25A29B7026829CBC00098B92 /* nv_NotificationCenterBg@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "nv_NotificationCenterBg@2x.png"; sourceTree = "<group>"; };
40
+ 25A29B7126829CBC00098B92 /* nv_NotificationCenterBg.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = nv_NotificationCenterBg.png; sourceTree = "<group>"; };
41
+ 25A29B7226829CBC00098B92 /* pause.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = pause.png; sourceTree = "<group>"; };
42
+ 25A29B7326829CBC00098B92 /* play.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = play.png; sourceTree = "<group>"; };
43
+ 25A29B7426829CBD00098B92 /* nv_NotificationCenterBg@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "nv_NotificationCenterBg@3x.png"; sourceTree = "<group>"; };
44
+ 25A29B7526829CBD00098B92 /* slider_bar.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = slider_bar.png; sourceTree = "<group>"; };
45
+ 25D52BB827E20C6C00890D62 /* libnotifyvisitors_6_3_1.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libnotifyvisitors_6_3_1.a; sourceTree = "<group>"; };
46
+ 25D52BB927E20C6C00890D62 /* notifyvisitors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = notifyvisitors.h; sourceTree = "<group>"; };
47
+ 25D52BBB27E20C8C00890D62 /* nvResourceValues.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = nvResourceValues.plist; sourceTree = "<group>"; };
47
48
  B3E7B5881CC2AC0600A0062D /* RNNotifyvisitors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNNotifyvisitors.h; sourceTree = "<group>"; };
48
49
  B3E7B5891CC2AC0600A0062D /* RNNotifyvisitors.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNotifyvisitors.m; sourceTree = "<group>"; };
49
50
  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; };
@@ -54,6 +55,7 @@
54
55
  isa = PBXFrameworksBuildPhase;
55
56
  buildActionMask = 2147483647;
56
57
  files = (
58
+ 25D52BBA27E20C6C00890D62 /* libnotifyvisitors_6_3_1.a in Frameworks */,
57
59
  DC31F4E523BC9CC900AAB2DB /* SystemConfiguration.framework in Frameworks */,
58
60
  );
59
61
  runOnlyForDeploymentPostprocessing = 0;
@@ -72,17 +74,17 @@
72
74
  253C98EC26411B0A00F2E8C9 /* Assets */ = {
73
75
  isa = PBXGroup;
74
76
  children = (
75
- 253C98EF26411B4B00F2E8C9 /* empty.png */,
76
- 253C98F626411B4C00F2E8C9 /* nv_deleteIcon.png */,
77
- 253C98EE26411B4A00F2E8C9 /* nv_deleteIcon@2x.png */,
78
- 253C98F326411B4C00F2E8C9 /* nv_NotificationCenterBg.png */,
79
- 253C98ED26411B4A00F2E8C9 /* nv_NotificationCenterBg@2x.png */,
80
- 253C98F026411B4B00F2E8C9 /* nv_NotificationCenterBg@3x.png */,
81
- 253C98F126411B4B00F2E8C9 /* nvResourceValues.plist */,
82
- 253C98F226411B4B00F2E8C9 /* pause.png */,
83
- 253C98F426411B4C00F2E8C9 /* play.png */,
84
- 253C98F526411B4C00F2E8C9 /* slider_bar.png */,
85
- 253C98F726411B4D00F2E8C9 /* slider_barHead.png */,
77
+ 25D52BBB27E20C8C00890D62 /* nvResourceValues.plist */,
78
+ 25A29B6F26829CBC00098B92 /* empty.png */,
79
+ 25A29B6B26829CBB00098B92 /* nv_deleteIcon.png */,
80
+ 25A29B6D26829CBB00098B92 /* nv_deleteIcon@2x.png */,
81
+ 25A29B7126829CBC00098B92 /* nv_NotificationCenterBg.png */,
82
+ 25A29B7026829CBC00098B92 /* nv_NotificationCenterBg@2x.png */,
83
+ 25A29B7426829CBD00098B92 /* nv_NotificationCenterBg@3x.png */,
84
+ 25A29B7226829CBC00098B92 /* pause.png */,
85
+ 25A29B7326829CBC00098B92 /* play.png */,
86
+ 25A29B7526829CBD00098B92 /* slider_bar.png */,
87
+ 25A29B6E26829CBB00098B92 /* slider_barHead.png */,
86
88
  );
87
89
  path = Assets;
88
90
  sourceTree = "<group>";
@@ -90,8 +92,8 @@
90
92
  58B511D21A9E6C8500147676 = {
91
93
  isa = PBXGroup;
92
94
  children = (
93
- 253C98EA26411AD000F2E8C9 /* notifyvisitors.h */,
94
- 253C98EB26411ADC00F2E8C9 /* libnotifyvisitors_6_0_1.a */,
95
+ 25D52BB827E20C6C00890D62 /* libnotifyvisitors_6_3_1.a */,
96
+ 25D52BB927E20C6C00890D62 /* notifyvisitors.h */,
95
97
  253C98EC26411B0A00F2E8C9 /* Assets */,
96
98
  DC4962D123BE131B005E63F5 /* RNNotifyvisitors */,
97
99
  134814211AA4EA7D00B7C361 /* Products */,
@@ -6,18 +6,16 @@
6
6
  // Copyright © 2016 notifyvisitors. All rights reserved.
7
7
  //
8
8
 
9
-
10
-
11
9
  #import <Foundation/Foundation.h>
12
- #import <AdSupport/AdSupport.h>
13
10
  #import <UIKit/UIKit.h>
14
11
  #import <CoreLocation/CoreLocation.h>
15
12
 
16
13
  typedef void(^NotificationListData)(NSMutableArray* _Nullable);
17
14
  typedef void(^nvGetCount)(NSInteger);
15
+ typedef void(^nvUnreadCenterCount)(NSDictionary* _Nullable);
16
+
18
17
  typedef void(^NotificationClickResponseData)(NSMutableDictionary* _Nullable);
19
18
  typedef void(^nv_UID)(NSString *_Nullable);
20
- //extern NSString * _Nonnull NVInAppViewController1;
21
19
 
22
20
  @protocol notifyvisitorsDelegate <NSObject>
23
21
 
@@ -27,18 +25,43 @@ typedef void(^nv_UID)(NSString *_Nullable);
27
25
  -(void)NotifyvisitorsGetEventResponseWithUserInfo:(NSDictionary*_Nullable)userInfo;
28
26
  @end
29
27
 
28
+ @interface NVCenterStyleConfig : NSObject
29
+
30
+ @property (strong, nonatomic, nullable)UIColor *unselectedTabTextColor;
31
+
32
+ @property (strong, nonatomic, nullable)UIColor *selectedTabTextColor;
33
+
34
+ @property (strong, nonatomic, nullable)UIColor *selectedTabBgColor;
35
+ @property (strong, nonatomic, nullable)UIColor *unselectedTabBgColor;
36
+
37
+ @property (nonatomic)NSInteger selectedTabIndex;
38
+ @property (strong, nonatomic, nullable)UIFont *tabTextfont;
39
+ @property (strong, nonatomic, nullable)UIColor *tabBadgeCountBorderColor;
40
+ @property (strong, nonatomic, nullable)UIColor *tabBadgeCountFillColor;
41
+ @property (strong, nonatomic, nullable)UIColor *tabBadgeCountTextColor;
42
+ @property (nonatomic)BOOL shouldTabBadgeShine;
43
+
44
+ +(instancetype _Nullable )sharedInstance;
45
+
46
+ -(void)setFirstTabWithTabLable:(NSString *_Nonnull)tabLabel TagDisplayName:(NSString *_Nonnull)tabDisplayName;
47
+
48
+ -(void)setSecondTabWithTabLable:(NSString *_Nonnull)tabLabel TagDisplayName:(NSString *_Nonnull)tabDisplayName;
49
+
50
+ -(void)setThirdTabWithTabLable:(NSString *_Nonnull)tabLabel TagDisplayName:(NSString *_Nonnull)tabDisplayName;
51
+
52
+ @end
53
+
54
+
55
+
30
56
 
31
57
  #if defined(__IPHONE_10_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
32
58
  #import <UserNotifications/UserNotifications.h>
33
59
  @interface notifyvisitors : NSObject <UNUserNotificationCenterDelegate>
34
60
 
35
- //# << iOS 10 Push notification delegate and service extension methods
36
-
37
61
  +(void)LoadAttachmentWithRequest:(UNNotificationRequest *_Nullable)request bestAttemptContent:(UNMutableNotificationContent *_Nullable)bestAttemptContent withContentHandler:(nullable void (^)(UNNotificationContent * _Nonnull))contentHandler API_AVAILABLE(ios(10.0));
38
62
  +(void)willPresentNotification:(UNNotification *_Nullable)notification withCompletionHandler:(void (^_Nullable)(UNNotificationPresentationOptions options))completionHandler API_AVAILABLE(ios(10.0));
39
63
  +(void)didReceiveNotificationResponse:(UNNotificationResponse *_Nullable)response API_AVAILABLE(ios(10.0));
40
64
  +(void)PushNotificationActionDataFromResponse:(UNNotificationResponse *_Nullable)response AutoRedirectOtherApps:(BOOL)autoRedirect clickResponseData:(NotificationClickResponseData _Nullable)pushClickResponse API_AVAILABLE(ios(10.0));
41
- //+(NSMutableDictionary *)PushNotificationActionDataFromResponse:(UNNotificationResponse *)response AutoRedirectOtherApps:(BOOL)autoRedirect API_AVAILABLE(ios(10.0));
42
65
  +(void)didReceiveRemoteNotification:(NSDictionary *_Nullable)userInfo fetchCompletionHandler:(void(^_Nullable)(UIBackgroundFetchResult))completionHandler;
43
66
  #else
44
67
 
@@ -73,13 +96,18 @@ typedef void(^nv_UID)(NSString *_Nullable);
73
96
 
74
97
  +(void)schedulePushNotificationwithNotificationID:(NSString * _Nullable)NID Tag:(NSString * _Nullable)tag TimeinSecond:(NSString * _Nullable)time Title:(NSString * _Nullable)title Message:(NSString * _Nullable)message URL:(NSString * _Nullable)url Icon:(NSString * _Nullable)icon;
75
98
 
76
- //+(void)checkFetchClickComplete:(NSTimer * _Nullable)timer;
99
+ +(void)pushPreferences:(NSArray*_Nullable)preferenceList isUnsubscribeFromAll:(BOOL)shouldUnsubscribe;
77
100
  +(void)NotifyVisitorsNotificationCentre;
101
+ +(void)notificationCenterWithConfiguration:(NVCenterStyleConfig *_Nullable)configuration;
102
+
103
+
78
104
  +(void)GetUnreadPushNotification:(nvGetCount _Nullable )UnreadCount;
105
+ +(void)getNotificationCenterCountWithConfiguration:(NVCenterStyleConfig *_Nullable)configuration countResult:(nvUnreadCenterCount _Nullable )unreadCenterCounts;
106
+
107
+
108
+ +(NSString *_Nullable)getPushRegistrationToken;
79
109
 
80
- //+(NSInteger)GetUnreadPushNotification;
81
- //+(NSMutableArray * _Nullable)GetNotificationCentreData;
82
- + (void)GetNotificationCentreData:(NotificationListData _Nullable) notificationDataList;
110
+ +(void)GetNotificationCentreData:(NotificationListData _Nullable) notificationDataList;
83
111
 
84
112
  +(void)NotifyVisitorsGeofencing;
85
113
 
@@ -100,12 +128,10 @@ typedef void(^nv_UID)(NSString *_Nullable);
100
128
 
101
129
  +(void)DismissAllNotifyvisitorsInAppNotifications;
102
130
  +(void)StopInAppNotifications;
103
- +(void)stopPushNotification:(BOOL)pushStatus;
104
131
  +(void)stopGeofencePushforDateTime:(NSString *_Nullable)nvDateTime additionalHours: (NSInteger)nvtimeinHours;
105
- //+(void)setChatBotDelegate:(id _Nullable)aDelegate;
106
-
107
132
 
108
133
  +(void)startChatBotWithScreenName: (NSString *_Nullable)nvBotScreenName;
109
134
  +(void)getNvUid:(nv_UID _Nullable)nvUID;
110
- @end
135
+ +(void)requestAppleAppStoreInAppReview;
111
136
 
137
+ @end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-notifyvisitors",
3
- "version": "4.0.9",
3
+ "version": "4.1.2",
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', '6.0.1'
26
+ s.dependency 'notifyvisitors', '6.3.1'
27
27
  end