react-native-notifyvisitors 4.1.1 → 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.
- package/README.md +0 -41
- package/android/.gradle/7.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/{6.3 → 7.1.1/dependencies-accessors}/gc.properties +0 -0
- package/android/.gradle/7.1.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/{6.3 → 7.1.1}/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.1.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.1.1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.settings/org.eclipse.buildship.core.prefs +2 -2
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/rn_notifyvisitors/RNNotifyvisitorsModule.java +578 -201
- package/index.js +212 -207
- package/ios/RNNotifyvisitors/RCTNVEventEmitter.m +504 -187
- package/ios/RNNotifyvisitors/RNNotifyvisitors.m +1 -1
- package/ios/RNNotifyvisitors.xcodeproj/project.pbxproj +8 -8
- package/ios/RNNotifyvisitors.xcodeproj/project.xcworkspace/xcuserdata/tagnpinwebsolutionsllp.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/{libnotifyvisitors_6_0_3.a → libnotifyvisitors_6_3_1.a} +0 -0
- package/ios/notifyvisitors.h +41 -14
- package/package.json +1 -1
- package/react-native-notifyvisitors.podspec +1 -1
- package/android/.gradle/6.3/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.3/fileHashes/fileHashes.lock +0 -0
|
@@ -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.2 !!");
|
|
36
36
|
NSString *nvMode = nil;
|
|
37
37
|
#if DEBUG
|
|
38
38
|
nvMode = @"debug";
|
|
@@ -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
|
-
|
|
12
|
+
25D52BBA27E20C6C00890D62 /* libnotifyvisitors_6_3_1.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 25D52BB827E20C6C00890D62 /* libnotifyvisitors_6_3_1.a */; };
|
|
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,10 +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
|
-
25A29B6826829C7C00098B92 /* libnotifyvisitors_6_0_3.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libnotifyvisitors_6_0_3.a; sourceTree = "<group>"; };
|
|
36
|
-
25A29B6A26829C8800098B92 /* notifyvisitors.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = notifyvisitors.h; sourceTree = "<group>"; };
|
|
37
35
|
25A29B6B26829CBB00098B92 /* nv_deleteIcon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = nv_deleteIcon.png; sourceTree = "<group>"; };
|
|
38
|
-
25A29B6C26829CBB00098B92 /* nvResourceValues.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = nvResourceValues.plist; sourceTree = "<group>"; };
|
|
39
36
|
25A29B6D26829CBB00098B92 /* nv_deleteIcon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "nv_deleteIcon@2x.png"; sourceTree = "<group>"; };
|
|
40
37
|
25A29B6E26829CBB00098B92 /* slider_barHead.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = slider_barHead.png; sourceTree = "<group>"; };
|
|
41
38
|
25A29B6F26829CBC00098B92 /* empty.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = empty.png; sourceTree = "<group>"; };
|
|
@@ -45,6 +42,9 @@
|
|
|
45
42
|
25A29B7326829CBC00098B92 /* play.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = play.png; sourceTree = "<group>"; };
|
|
46
43
|
25A29B7426829CBD00098B92 /* nv_NotificationCenterBg@3x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "nv_NotificationCenterBg@3x.png"; sourceTree = "<group>"; };
|
|
47
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>"; };
|
|
48
48
|
B3E7B5881CC2AC0600A0062D /* RNNotifyvisitors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNNotifyvisitors.h; sourceTree = "<group>"; };
|
|
49
49
|
B3E7B5891CC2AC0600A0062D /* RNNotifyvisitors.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNNotifyvisitors.m; sourceTree = "<group>"; };
|
|
50
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; };
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
isa = PBXFrameworksBuildPhase;
|
|
56
56
|
buildActionMask = 2147483647;
|
|
57
57
|
files = (
|
|
58
|
+
25D52BBA27E20C6C00890D62 /* libnotifyvisitors_6_3_1.a in Frameworks */,
|
|
58
59
|
DC31F4E523BC9CC900AAB2DB /* SystemConfiguration.framework in Frameworks */,
|
|
59
|
-
25A29B6926829C7D00098B92 /* libnotifyvisitors_6_0_3.a in Frameworks */,
|
|
60
60
|
);
|
|
61
61
|
runOnlyForDeploymentPostprocessing = 0;
|
|
62
62
|
};
|
|
@@ -74,13 +74,13 @@
|
|
|
74
74
|
253C98EC26411B0A00F2E8C9 /* Assets */ = {
|
|
75
75
|
isa = PBXGroup;
|
|
76
76
|
children = (
|
|
77
|
+
25D52BBB27E20C8C00890D62 /* nvResourceValues.plist */,
|
|
77
78
|
25A29B6F26829CBC00098B92 /* empty.png */,
|
|
78
79
|
25A29B6B26829CBB00098B92 /* nv_deleteIcon.png */,
|
|
79
80
|
25A29B6D26829CBB00098B92 /* nv_deleteIcon@2x.png */,
|
|
80
81
|
25A29B7126829CBC00098B92 /* nv_NotificationCenterBg.png */,
|
|
81
82
|
25A29B7026829CBC00098B92 /* nv_NotificationCenterBg@2x.png */,
|
|
82
83
|
25A29B7426829CBD00098B92 /* nv_NotificationCenterBg@3x.png */,
|
|
83
|
-
25A29B6C26829CBB00098B92 /* nvResourceValues.plist */,
|
|
84
84
|
25A29B7226829CBC00098B92 /* pause.png */,
|
|
85
85
|
25A29B7326829CBC00098B92 /* play.png */,
|
|
86
86
|
25A29B7526829CBD00098B92 /* slider_bar.png */,
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
58B511D21A9E6C8500147676 = {
|
|
93
93
|
isa = PBXGroup;
|
|
94
94
|
children = (
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
25D52BB827E20C6C00890D62 /* libnotifyvisitors_6_3_1.a */,
|
|
96
|
+
25D52BB927E20C6C00890D62 /* notifyvisitors.h */,
|
|
97
97
|
253C98EC26411B0A00F2E8C9 /* Assets */,
|
|
98
98
|
DC4962D123BE131B005E63F5 /* RNNotifyvisitors */,
|
|
99
99
|
134814211AA4EA7D00B7C361 /* Products */,
|
|
Binary file
|
|
Binary file
|
package/ios/notifyvisitors.h
CHANGED
|
@@ -6,17 +6,16 @@
|
|
|
6
6
|
// Copyright © 2016 notifyvisitors. All rights reserved.
|
|
7
7
|
//
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
9
|
#import <Foundation/Foundation.h>
|
|
12
10
|
#import <UIKit/UIKit.h>
|
|
13
11
|
#import <CoreLocation/CoreLocation.h>
|
|
14
12
|
|
|
15
13
|
typedef void(^NotificationListData)(NSMutableArray* _Nullable);
|
|
16
14
|
typedef void(^nvGetCount)(NSInteger);
|
|
15
|
+
typedef void(^nvUnreadCenterCount)(NSDictionary* _Nullable);
|
|
16
|
+
|
|
17
17
|
typedef void(^NotificationClickResponseData)(NSMutableDictionary* _Nullable);
|
|
18
18
|
typedef void(^nv_UID)(NSString *_Nullable);
|
|
19
|
-
//extern NSString * _Nonnull NVInAppViewController1;
|
|
20
19
|
|
|
21
20
|
@protocol notifyvisitorsDelegate <NSObject>
|
|
22
21
|
|
|
@@ -26,18 +25,43 @@ typedef void(^nv_UID)(NSString *_Nullable);
|
|
|
26
25
|
-(void)NotifyvisitorsGetEventResponseWithUserInfo:(NSDictionary*_Nullable)userInfo;
|
|
27
26
|
@end
|
|
28
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
|
+
|
|
29
56
|
|
|
30
57
|
#if defined(__IPHONE_10_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
|
|
31
58
|
#import <UserNotifications/UserNotifications.h>
|
|
32
59
|
@interface notifyvisitors : NSObject <UNUserNotificationCenterDelegate>
|
|
33
60
|
|
|
34
|
-
//# << iOS 10 Push notification delegate and service extension methods
|
|
35
|
-
|
|
36
61
|
+(void)LoadAttachmentWithRequest:(UNNotificationRequest *_Nullable)request bestAttemptContent:(UNMutableNotificationContent *_Nullable)bestAttemptContent withContentHandler:(nullable void (^)(UNNotificationContent * _Nonnull))contentHandler API_AVAILABLE(ios(10.0));
|
|
37
62
|
+(void)willPresentNotification:(UNNotification *_Nullable)notification withCompletionHandler:(void (^_Nullable)(UNNotificationPresentationOptions options))completionHandler API_AVAILABLE(ios(10.0));
|
|
38
63
|
+(void)didReceiveNotificationResponse:(UNNotificationResponse *_Nullable)response API_AVAILABLE(ios(10.0));
|
|
39
64
|
+(void)PushNotificationActionDataFromResponse:(UNNotificationResponse *_Nullable)response AutoRedirectOtherApps:(BOOL)autoRedirect clickResponseData:(NotificationClickResponseData _Nullable)pushClickResponse API_AVAILABLE(ios(10.0));
|
|
40
|
-
//+(NSMutableDictionary *)PushNotificationActionDataFromResponse:(UNNotificationResponse *)response AutoRedirectOtherApps:(BOOL)autoRedirect API_AVAILABLE(ios(10.0));
|
|
41
65
|
+(void)didReceiveRemoteNotification:(NSDictionary *_Nullable)userInfo fetchCompletionHandler:(void(^_Nullable)(UIBackgroundFetchResult))completionHandler;
|
|
42
66
|
#else
|
|
43
67
|
|
|
@@ -72,13 +96,18 @@ typedef void(^nv_UID)(NSString *_Nullable);
|
|
|
72
96
|
|
|
73
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;
|
|
74
98
|
|
|
75
|
-
|
|
99
|
+
+(void)pushPreferences:(NSArray*_Nullable)preferenceList isUnsubscribeFromAll:(BOOL)shouldUnsubscribe;
|
|
76
100
|
+(void)NotifyVisitorsNotificationCentre;
|
|
101
|
+
+(void)notificationCenterWithConfiguration:(NVCenterStyleConfig *_Nullable)configuration;
|
|
102
|
+
|
|
103
|
+
|
|
77
104
|
+(void)GetUnreadPushNotification:(nvGetCount _Nullable )UnreadCount;
|
|
105
|
+
+(void)getNotificationCenterCountWithConfiguration:(NVCenterStyleConfig *_Nullable)configuration countResult:(nvUnreadCenterCount _Nullable )unreadCenterCounts;
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
+(NSString *_Nullable)getPushRegistrationToken;
|
|
78
109
|
|
|
79
|
-
|
|
80
|
-
//+(NSMutableArray * _Nullable)GetNotificationCentreData;
|
|
81
|
-
+ (void)GetNotificationCentreData:(NotificationListData _Nullable) notificationDataList;
|
|
110
|
+
+(void)GetNotificationCentreData:(NotificationListData _Nullable) notificationDataList;
|
|
82
111
|
|
|
83
112
|
+(void)NotifyVisitorsGeofencing;
|
|
84
113
|
|
|
@@ -99,12 +128,10 @@ typedef void(^nv_UID)(NSString *_Nullable);
|
|
|
99
128
|
|
|
100
129
|
+(void)DismissAllNotifyvisitorsInAppNotifications;
|
|
101
130
|
+(void)StopInAppNotifications;
|
|
102
|
-
+(void)stopPushNotification:(BOOL)pushStatus;
|
|
103
131
|
+(void)stopGeofencePushforDateTime:(NSString *_Nullable)nvDateTime additionalHours: (NSInteger)nvtimeinHours;
|
|
104
|
-
//+(void)setChatBotDelegate:(id _Nullable)aDelegate;
|
|
105
|
-
|
|
106
132
|
|
|
107
133
|
+(void)startChatBotWithScreenName: (NSString *_Nullable)nvBotScreenName;
|
|
108
134
|
+(void)getNvUid:(nv_UID _Nullable)nvUID;
|
|
109
|
-
|
|
135
|
+
+(void)requestAppleAppStoreInAppReview;
|
|
110
136
|
|
|
137
|
+
@end
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|