react-native-notifyvisitors 4.2.3 → 4.3.0
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/.settings/org.eclipse.buildship.core.prefs +3 -3
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/rn_notifyvisitors/RNNotifyvisitorsModule.java +47 -8
- package/index.d.ts +1 -0
- package/index.js +379 -361
- package/ios/RNNotifyvisitors/RCTNVEventEmitter.m +69 -9
- package/ios/RNNotifyvisitors/RNNotifyvisitors.h +28 -17
- package/ios/RNNotifyvisitors/RNNotifyvisitors.m +116 -56
- package/ios/RNNotifyvisitors.xcodeproj/project.pbxproj +5 -37
- package/ios/notifyvisitors.xcframework/Info.plist +40 -0
- package/ios/notifyvisitors.xcframework/ios-arm64/notifyvisitors.framework/Assets.car +0 -0
- package/ios/notifyvisitors.xcframework/ios-arm64/notifyvisitors.framework/Headers/notifyvisitors.h +148 -0
- package/ios/notifyvisitors.xcframework/ios-arm64/notifyvisitors.framework/Info.plist +0 -0
- package/ios/notifyvisitors.xcframework/ios-arm64/notifyvisitors.framework/Modules/module.modulemap +6 -0
- package/ios/notifyvisitors.xcframework/ios-arm64/notifyvisitors.framework/_CodeSignature/CodeResources +135 -0
- package/ios/notifyvisitors.xcframework/ios-arm64/notifyvisitors.framework/notifyvisitors +0 -0
- package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-simulator/notifyvisitors.framework/Assets.car +0 -0
- package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-simulator/notifyvisitors.framework/Headers/notifyvisitors.h +148 -0
- package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-simulator/notifyvisitors.framework/Info.plist +0 -0
- package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-simulator/notifyvisitors.framework/Modules/module.modulemap +6 -0
- package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-simulator/notifyvisitors.framework/_CodeSignature/CodeResources +135 -0
- package/ios/notifyvisitors.xcframework/ios-arm64_x86_64-simulator/notifyvisitors.framework/notifyvisitors +0 -0
- package/ios/{Assets/nvResourceValues.plist → nvResourceValues.plist} +7 -3
- package/package.json +1 -1
- package/react-native-notifyvisitors.podspec +1 -1
- package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.4.2/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.4.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.4.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/ios/Assets/empty.png +0 -0
- package/ios/Assets/nv_NotificationCenterBg.png +0 -0
- package/ios/Assets/nv_NotificationCenterBg@2x.png +0 -0
- package/ios/Assets/nv_NotificationCenterBg@3x.png +0 -0
- package/ios/Assets/nv_deleteIcon.png +0 -0
- package/ios/Assets/nv_deleteIcon@2x.png +0 -0
- package/ios/Assets/pause.png +0 -0
- package/ios/Assets/play.png +0 -0
- package/ios/Assets/slider_bar.png +0 -0
- package/ios/Assets/slider_barHead.png +0 -0
- package/ios/RNNotifyvisitors.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -4
- package/ios/RNNotifyvisitors.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/RNNotifyvisitors.xcodeproj/project.xcworkspace/xcuserdata/neeraj.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/RNNotifyvisitors.xcodeproj/project.xcworkspace/xcuserdata/nv_macbook-2.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/RNNotifyvisitors.xcodeproj/project.xcworkspace/xcuserdata/siddharthgupta.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/RNNotifyvisitors.xcodeproj/project.xcworkspace/xcuserdata/tagnpinwebsolutionsllp.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/RNNotifyvisitors.xcodeproj/xcuserdata/neeraj.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/ios/RNNotifyvisitors.xcodeproj/xcuserdata/nv_macbook-2.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/ios/RNNotifyvisitors.xcodeproj/xcuserdata/siddharthgupta.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/ios/RNNotifyvisitors.xcodeproj/xcuserdata/tagnpinwebsolutionsllp.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/ios/libnotifyvisitors_6_4_4.a +0 -0
- package/ios/notifyvisitors.h +0 -137
package/ios/notifyvisitors.xcframework/ios-arm64/notifyvisitors.framework/Headers/notifyvisitors.h
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
//
|
|
2
|
+
// notifyvisitors.h
|
|
3
|
+
// notifyvisitors
|
|
4
|
+
//
|
|
5
|
+
// Created by Notifyvisitors Macbook Air 4 on 25/10/23.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <UserNotifications/UserNotifications.h>
|
|
10
|
+
#import <UIKit/UIKit.h>
|
|
11
|
+
|
|
12
|
+
//! Project version number for notifyvisitors.
|
|
13
|
+
FOUNDATION_EXPORT double notifyvisitorsVersionNumber;
|
|
14
|
+
|
|
15
|
+
//! Project version string for notifyvisitors.
|
|
16
|
+
FOUNDATION_EXPORT const unsigned char notifyvisitorsVersionString[];
|
|
17
|
+
|
|
18
|
+
// In this header, you should import all the public headers of your framework using statements like #import <notifyvisitors/PublicHeader.h>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
typedef NS_ENUM(NSUInteger, nvPushBadgeCount){
|
|
22
|
+
nvPushBadgeCountIncreaseByOne,
|
|
23
|
+
nvPushBadgeCountDecreaseByOne,
|
|
24
|
+
nvPushBadgeCountClearAll
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
typedef void(^NotificationListData)(NSMutableArray*_Nullable);
|
|
28
|
+
typedef void(^nvGetCount)(NSInteger);
|
|
29
|
+
typedef void(^nvUnreadCenterCount)(NSDictionary*_Nullable);
|
|
30
|
+
|
|
31
|
+
typedef void(^NotificationClickResponseData)(NSMutableDictionary*_Nullable);
|
|
32
|
+
typedef void(^nv_UID)(NSString *_Nullable);
|
|
33
|
+
|
|
34
|
+
@protocol notifyvisitorsDelegate <NSObject>
|
|
35
|
+
|
|
36
|
+
@optional
|
|
37
|
+
-(void)NotifyvisitorsGetEventResponseWithUserInfo:(NSDictionary*_Nullable)userInfo DEPRECATED_MSG_ATTRIBUTE("first deprecated in Notifyvisitors iOS SDK 7.0.1 Use [notifyvisitors notifyvisitorsEventsResponseCallback:] (see notifyvisitors.h)");
|
|
38
|
+
-(void)notifyvisitorsEventsResponseCallback:(NSDictionary*_Nullable)callback;
|
|
39
|
+
@end
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@interface NVCenterStyleConfig : NSObject
|
|
43
|
+
|
|
44
|
+
@property (strong, nonatomic)UIColor * _Nullable unselectedTabTextColor;
|
|
45
|
+
|
|
46
|
+
@property (strong, nonatomic)UIColor * _Nullable selectedTabTextColor;
|
|
47
|
+
|
|
48
|
+
@property (strong, nonatomic)UIColor * _Nullable selectedTabBgColor;
|
|
49
|
+
@property (strong, nonatomic)UIColor * _Nullable unselectedTabBgColor;
|
|
50
|
+
|
|
51
|
+
@property (nonatomic)NSInteger selectedTabIndex;
|
|
52
|
+
@property (strong, nonatomic)UIFont * _Nullable tabTextfont;
|
|
53
|
+
@property (strong, nonatomic)UIColor * _Nullable tabBadgeCountBorderColor;
|
|
54
|
+
@property (strong, nonatomic)UIColor * _Nullable tabBadgeCountFillColor;
|
|
55
|
+
@property (strong, nonatomic)UIColor * _Nullable tabBadgeCountTextColor;
|
|
56
|
+
@property (nonatomic)BOOL shouldTabBadgeShine;
|
|
57
|
+
|
|
58
|
+
+(instancetype _Nullable )sharedInstance;
|
|
59
|
+
|
|
60
|
+
-(void)setFirstTabWithTabLable:(NSString *_Nonnull)tabLabel TagDisplayName:(NSString *_Nonnull)tabDisplayName;
|
|
61
|
+
|
|
62
|
+
-(void)setSecondTabWithTabLable:(NSString *_Nonnull)tabLabel TagDisplayName:(NSString *_Nonnull)tabDisplayName;
|
|
63
|
+
|
|
64
|
+
-(void)setThirdTabWithTabLable:(NSString *_Nonnull)tabLabel TagDisplayName:(NSString *_Nonnull)tabDisplayName;
|
|
65
|
+
|
|
66
|
+
@end
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
@interface notifyvisitors : NSObject <UNUserNotificationCenterDelegate>
|
|
71
|
+
|
|
72
|
+
@property (nonatomic, weak)id <notifyvisitorsDelegate> _Nullable delegate;
|
|
73
|
+
|
|
74
|
+
+(instancetype _Nonnull )sharedInstance;
|
|
75
|
+
|
|
76
|
+
#pragma mark - INITIAL INTEGRATION METHODS
|
|
77
|
+
|
|
78
|
+
+(void)Initialize:(NSString *_Nullable)nvMode;
|
|
79
|
+
|
|
80
|
+
+(void)applicationDidEnterBackground:(UIApplication *_Nullable)application;
|
|
81
|
+
+(void)sceneDidEnterBackground:(UIScene *_Nullable)scene API_AVAILABLE(ios(13.0));
|
|
82
|
+
|
|
83
|
+
+(void)applicationWillEnterForeground:(UIApplication *_Nullable)application;
|
|
84
|
+
+(void)sceneWillEnterForeground:(UIScene *_Nullable)scene API_AVAILABLE(ios(13.0));
|
|
85
|
+
|
|
86
|
+
+(void)applicationDidBecomeActive:(UIApplication *_Nullable)application;
|
|
87
|
+
+(void)sceneDidBecomeActive:(UIScene *_Nullable)scene API_AVAILABLE(ios(13.0));
|
|
88
|
+
|
|
89
|
+
+(void)applicationWillTerminate;
|
|
90
|
+
|
|
91
|
+
+(void)OpenUrlWithApplication:(UIApplication *_Nullable)application Url:(NSURL *_Nullable)url;
|
|
92
|
+
+(NSMutableDictionary*_Nullable)OpenUrlGetDataWithApplication: (UIApplication *_Nullable)application Url:(NSURL *_Nullable)url;
|
|
93
|
+
|
|
94
|
+
+(void)scene:(UIScene *_Nullable)scene willConnectToSession:(UISceneSession *_Nullable)session options:(UISceneConnectionOptions *_Nullable)connectionOptions API_AVAILABLE(ios(13.0));
|
|
95
|
+
+(void)scene:(UIScene *_Nullable)scene openURLContexts:(NSSet<UIOpenURLContext *> *_Nullable)URLContexts API_AVAILABLE(ios(13.0));
|
|
96
|
+
|
|
97
|
+
+(void)trackEvents:(NSString *_Nullable)event_name Attributes:(NSMutableDictionary *_Nullable)attributes lifetimeValue:(NSString *_Nullable)ltv Scope:(int)scope;
|
|
98
|
+
|
|
99
|
+
+(void)UserIdentifier:(NSString *_Nullable) userID UserParams:(NSMutableDictionary *_Nullable) UserParams;
|
|
100
|
+
+(void)getNvUid:(nv_UID _Nullable)nvUID;
|
|
101
|
+
|
|
102
|
+
+(void)Show:(NSMutableDictionary *_Nullable)UserTokens CustomRule:(NSMutableDictionary *_Nullable)customRule;
|
|
103
|
+
+(void)scrollViewDidScroll:(UIScrollView *_Nullable) scrollView;
|
|
104
|
+
+(void)DismissAllNotifyvisitorsInAppNotifications;
|
|
105
|
+
+(void)StopInAppNotifications;
|
|
106
|
+
+(void)requestAppleAppStoreInAppReview;
|
|
107
|
+
|
|
108
|
+
+(void)RegisterPushWithDelegate:(id _Nullable )delegate App:(UIApplication *_Nullable)application launchOptions:(NSDictionary *_Nullable)launchOptions;
|
|
109
|
+
+(void)DidRegisteredNotification:(UIApplication *_Nullable)application deviceToken:(NSData *_Nullable)deviceToken;
|
|
110
|
+
+(NSString *_Nullable)getPushRegistrationToken;
|
|
111
|
+
|
|
112
|
+
+(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;
|
|
113
|
+
|
|
114
|
+
+(void)pushPreferences:(NSArray *_Nullable)preferenceList isUnsubscribeFromAll:(BOOL)shouldUnsubscribe;
|
|
115
|
+
|
|
116
|
+
+(void)updatePushBadgeNumberWithValue:(nvPushBadgeCount)nvPushBadgeNumber;
|
|
117
|
+
|
|
118
|
+
+(void)didReceiveRemoteNotificationWithUserInfo:(NSDictionary *_Nullable)userInfo;
|
|
119
|
+
+(NSMutableDictionary *_Nullable)PushNotificationActionDataFromUserInfo:(NSDictionary *_Nullable)userinfo;
|
|
120
|
+
+(void)didReceiveRemoteNotification:(NSDictionary *_Nullable)userInfo fetchCompletionHandler:(void(^_Nullable)(UIBackgroundFetchResult))completionHandler;
|
|
121
|
+
|
|
122
|
+
+(void)willPresentNotification:(UNNotification *_Nullable)notification withCompletionHandler:(void (^_Nullable)(UNNotificationPresentationOptions options))completionHandler API_AVAILABLE(ios(10.0));
|
|
123
|
+
|
|
124
|
+
+(void)didReceiveNotificationResponse:(UNNotificationResponse *_Nullable)response API_AVAILABLE(ios(10.0));
|
|
125
|
+
+(void)PushNotificationActionDataFromResponse:(UNNotificationResponse *_Nullable)response AutoRedirectOtherApps:(BOOL)autoRedirect clickResponseData:(NotificationClickResponseData _Nullable )pushClickResponse API_AVAILABLE(ios(10.0));
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
+(void)NotifyVisitorsNotificationCentre DEPRECATED_MSG_ATTRIBUTE("first deprecated in Notifyvisitors iOS SDK 6.4.3 Use [notifyvisitors notificationCenter:] (see notifyvisitors.h)");
|
|
129
|
+
|
|
130
|
+
+(void)notificationCenter;
|
|
131
|
+
+(void)notificationCenterWithConfiguration:(NVCenterStyleConfig *_Nullable)configuration;
|
|
132
|
+
+(void)GetNotificationCentreData:(NotificationListData _Nullable ) notificationDataList DEPRECATED_MSG_ATTRIBUTE("first deprecated in Notifyvisitors iOS SDK 7.0.2 Use [notifyvisitors getNotificationCenterData:] to get reformated data response in NSDictionary format. (see notifyvisitors.h)");
|
|
133
|
+
|
|
134
|
+
+(void)getNotificationCenterData:(void(^_Nullable)(NSDictionary *_Nullable))notificationsData;
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
//GetNotificationCentreData:(NotificationListData _Nullable ) notificationDataList;
|
|
138
|
+
|
|
139
|
+
+(void)GetUnreadPushNotification:(nvGetCount _Nullable )nvUnreadCount;
|
|
140
|
+
+(void)getNotificationCenterCountWithConfiguration:(NVCenterStyleConfig *_Nullable)configuration countResult:(nvUnreadCenterCount _Nullable )unreadCenterCounts;
|
|
141
|
+
|
|
142
|
+
+(void)stopGeofencePushforDateTime:(NSString *_Nullable)nvDateTime additionalHours: (NSInteger)nvtimeinHours;
|
|
143
|
+
|
|
144
|
+
//+(void)startChatBotWithScreenName:(NSString *)nvBotScreenName;
|
|
145
|
+
|
|
146
|
+
+(void)LoadAttachmentWithRequest:(UNNotificationRequest *_Nullable)request bestAttemptContent:(UNMutableNotificationContent *_Nullable)bestAttemptContent withContentHandler:(nullable void (^)(UNNotificationContent * _Nonnull))contentHandler API_AVAILABLE(ios(10.0));
|
|
147
|
+
|
|
148
|
+
@end
|
|
Binary file
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>files</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>Assets.car</key>
|
|
8
|
+
<data>
|
|
9
|
+
9YxBcMOpOEB6e7RY4Ar1C8G17ns=
|
|
10
|
+
</data>
|
|
11
|
+
<key>Headers/notifyvisitors.h</key>
|
|
12
|
+
<data>
|
|
13
|
+
vFyxc/BjaXYc6xoIBqWZHZCjdwA=
|
|
14
|
+
</data>
|
|
15
|
+
<key>Info.plist</key>
|
|
16
|
+
<data>
|
|
17
|
+
twHy1BIuvPCe0aa8eUN/6eqXnCM=
|
|
18
|
+
</data>
|
|
19
|
+
<key>Modules/module.modulemap</key>
|
|
20
|
+
<data>
|
|
21
|
+
ssqSvaUzlY/r6GHxmph0GIHY1NY=
|
|
22
|
+
</data>
|
|
23
|
+
</dict>
|
|
24
|
+
<key>files2</key>
|
|
25
|
+
<dict>
|
|
26
|
+
<key>Assets.car</key>
|
|
27
|
+
<dict>
|
|
28
|
+
<key>hash2</key>
|
|
29
|
+
<data>
|
|
30
|
+
bvVoM3jCMGiveQZSoOL3ESViq2i3sN/YwbqNtzy+Tgk=
|
|
31
|
+
</data>
|
|
32
|
+
</dict>
|
|
33
|
+
<key>Headers/notifyvisitors.h</key>
|
|
34
|
+
<dict>
|
|
35
|
+
<key>hash2</key>
|
|
36
|
+
<data>
|
|
37
|
+
v0w3U/I0tbvxSSQWcCBAIhg96i4cM9/4UdAChoDsmRk=
|
|
38
|
+
</data>
|
|
39
|
+
</dict>
|
|
40
|
+
<key>Modules/module.modulemap</key>
|
|
41
|
+
<dict>
|
|
42
|
+
<key>hash2</key>
|
|
43
|
+
<data>
|
|
44
|
+
Q32U9PPopKciPA3pgC16NrErqUjh1sFvUJqLPZbdSz4=
|
|
45
|
+
</data>
|
|
46
|
+
</dict>
|
|
47
|
+
</dict>
|
|
48
|
+
<key>rules</key>
|
|
49
|
+
<dict>
|
|
50
|
+
<key>^.*</key>
|
|
51
|
+
<true/>
|
|
52
|
+
<key>^.*\.lproj/</key>
|
|
53
|
+
<dict>
|
|
54
|
+
<key>optional</key>
|
|
55
|
+
<true/>
|
|
56
|
+
<key>weight</key>
|
|
57
|
+
<real>1000</real>
|
|
58
|
+
</dict>
|
|
59
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
60
|
+
<dict>
|
|
61
|
+
<key>omit</key>
|
|
62
|
+
<true/>
|
|
63
|
+
<key>weight</key>
|
|
64
|
+
<real>1100</real>
|
|
65
|
+
</dict>
|
|
66
|
+
<key>^Base\.lproj/</key>
|
|
67
|
+
<dict>
|
|
68
|
+
<key>weight</key>
|
|
69
|
+
<real>1010</real>
|
|
70
|
+
</dict>
|
|
71
|
+
<key>^version.plist$</key>
|
|
72
|
+
<true/>
|
|
73
|
+
</dict>
|
|
74
|
+
<key>rules2</key>
|
|
75
|
+
<dict>
|
|
76
|
+
<key>.*\.dSYM($|/)</key>
|
|
77
|
+
<dict>
|
|
78
|
+
<key>weight</key>
|
|
79
|
+
<real>11</real>
|
|
80
|
+
</dict>
|
|
81
|
+
<key>^(.*/)?\.DS_Store$</key>
|
|
82
|
+
<dict>
|
|
83
|
+
<key>omit</key>
|
|
84
|
+
<true/>
|
|
85
|
+
<key>weight</key>
|
|
86
|
+
<real>2000</real>
|
|
87
|
+
</dict>
|
|
88
|
+
<key>^.*</key>
|
|
89
|
+
<true/>
|
|
90
|
+
<key>^.*\.lproj/</key>
|
|
91
|
+
<dict>
|
|
92
|
+
<key>optional</key>
|
|
93
|
+
<true/>
|
|
94
|
+
<key>weight</key>
|
|
95
|
+
<real>1000</real>
|
|
96
|
+
</dict>
|
|
97
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
98
|
+
<dict>
|
|
99
|
+
<key>omit</key>
|
|
100
|
+
<true/>
|
|
101
|
+
<key>weight</key>
|
|
102
|
+
<real>1100</real>
|
|
103
|
+
</dict>
|
|
104
|
+
<key>^Base\.lproj/</key>
|
|
105
|
+
<dict>
|
|
106
|
+
<key>weight</key>
|
|
107
|
+
<real>1010</real>
|
|
108
|
+
</dict>
|
|
109
|
+
<key>^Info\.plist$</key>
|
|
110
|
+
<dict>
|
|
111
|
+
<key>omit</key>
|
|
112
|
+
<true/>
|
|
113
|
+
<key>weight</key>
|
|
114
|
+
<real>20</real>
|
|
115
|
+
</dict>
|
|
116
|
+
<key>^PkgInfo$</key>
|
|
117
|
+
<dict>
|
|
118
|
+
<key>omit</key>
|
|
119
|
+
<true/>
|
|
120
|
+
<key>weight</key>
|
|
121
|
+
<real>20</real>
|
|
122
|
+
</dict>
|
|
123
|
+
<key>^embedded\.provisionprofile$</key>
|
|
124
|
+
<dict>
|
|
125
|
+
<key>weight</key>
|
|
126
|
+
<real>20</real>
|
|
127
|
+
</dict>
|
|
128
|
+
<key>^version\.plist$</key>
|
|
129
|
+
<dict>
|
|
130
|
+
<key>weight</key>
|
|
131
|
+
<real>20</real>
|
|
132
|
+
</dict>
|
|
133
|
+
</dict>
|
|
134
|
+
</dict>
|
|
135
|
+
</plist>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
//
|
|
2
|
+
// notifyvisitors.h
|
|
3
|
+
// notifyvisitors
|
|
4
|
+
//
|
|
5
|
+
// Created by Notifyvisitors Macbook Air 4 on 25/10/23.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import <UserNotifications/UserNotifications.h>
|
|
10
|
+
#import <UIKit/UIKit.h>
|
|
11
|
+
|
|
12
|
+
//! Project version number for notifyvisitors.
|
|
13
|
+
FOUNDATION_EXPORT double notifyvisitorsVersionNumber;
|
|
14
|
+
|
|
15
|
+
//! Project version string for notifyvisitors.
|
|
16
|
+
FOUNDATION_EXPORT const unsigned char notifyvisitorsVersionString[];
|
|
17
|
+
|
|
18
|
+
// In this header, you should import all the public headers of your framework using statements like #import <notifyvisitors/PublicHeader.h>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
typedef NS_ENUM(NSUInteger, nvPushBadgeCount){
|
|
22
|
+
nvPushBadgeCountIncreaseByOne,
|
|
23
|
+
nvPushBadgeCountDecreaseByOne,
|
|
24
|
+
nvPushBadgeCountClearAll
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
typedef void(^NotificationListData)(NSMutableArray*_Nullable);
|
|
28
|
+
typedef void(^nvGetCount)(NSInteger);
|
|
29
|
+
typedef void(^nvUnreadCenterCount)(NSDictionary*_Nullable);
|
|
30
|
+
|
|
31
|
+
typedef void(^NotificationClickResponseData)(NSMutableDictionary*_Nullable);
|
|
32
|
+
typedef void(^nv_UID)(NSString *_Nullable);
|
|
33
|
+
|
|
34
|
+
@protocol notifyvisitorsDelegate <NSObject>
|
|
35
|
+
|
|
36
|
+
@optional
|
|
37
|
+
-(void)NotifyvisitorsGetEventResponseWithUserInfo:(NSDictionary*_Nullable)userInfo DEPRECATED_MSG_ATTRIBUTE("first deprecated in Notifyvisitors iOS SDK 7.0.1 Use [notifyvisitors notifyvisitorsEventsResponseCallback:] (see notifyvisitors.h)");
|
|
38
|
+
-(void)notifyvisitorsEventsResponseCallback:(NSDictionary*_Nullable)callback;
|
|
39
|
+
@end
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@interface NVCenterStyleConfig : NSObject
|
|
43
|
+
|
|
44
|
+
@property (strong, nonatomic)UIColor * _Nullable unselectedTabTextColor;
|
|
45
|
+
|
|
46
|
+
@property (strong, nonatomic)UIColor * _Nullable selectedTabTextColor;
|
|
47
|
+
|
|
48
|
+
@property (strong, nonatomic)UIColor * _Nullable selectedTabBgColor;
|
|
49
|
+
@property (strong, nonatomic)UIColor * _Nullable unselectedTabBgColor;
|
|
50
|
+
|
|
51
|
+
@property (nonatomic)NSInteger selectedTabIndex;
|
|
52
|
+
@property (strong, nonatomic)UIFont * _Nullable tabTextfont;
|
|
53
|
+
@property (strong, nonatomic)UIColor * _Nullable tabBadgeCountBorderColor;
|
|
54
|
+
@property (strong, nonatomic)UIColor * _Nullable tabBadgeCountFillColor;
|
|
55
|
+
@property (strong, nonatomic)UIColor * _Nullable tabBadgeCountTextColor;
|
|
56
|
+
@property (nonatomic)BOOL shouldTabBadgeShine;
|
|
57
|
+
|
|
58
|
+
+(instancetype _Nullable )sharedInstance;
|
|
59
|
+
|
|
60
|
+
-(void)setFirstTabWithTabLable:(NSString *_Nonnull)tabLabel TagDisplayName:(NSString *_Nonnull)tabDisplayName;
|
|
61
|
+
|
|
62
|
+
-(void)setSecondTabWithTabLable:(NSString *_Nonnull)tabLabel TagDisplayName:(NSString *_Nonnull)tabDisplayName;
|
|
63
|
+
|
|
64
|
+
-(void)setThirdTabWithTabLable:(NSString *_Nonnull)tabLabel TagDisplayName:(NSString *_Nonnull)tabDisplayName;
|
|
65
|
+
|
|
66
|
+
@end
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
@interface notifyvisitors : NSObject <UNUserNotificationCenterDelegate>
|
|
71
|
+
|
|
72
|
+
@property (nonatomic, weak)id <notifyvisitorsDelegate> _Nullable delegate;
|
|
73
|
+
|
|
74
|
+
+(instancetype _Nonnull )sharedInstance;
|
|
75
|
+
|
|
76
|
+
#pragma mark - INITIAL INTEGRATION METHODS
|
|
77
|
+
|
|
78
|
+
+(void)Initialize:(NSString *_Nullable)nvMode;
|
|
79
|
+
|
|
80
|
+
+(void)applicationDidEnterBackground:(UIApplication *_Nullable)application;
|
|
81
|
+
+(void)sceneDidEnterBackground:(UIScene *_Nullable)scene API_AVAILABLE(ios(13.0));
|
|
82
|
+
|
|
83
|
+
+(void)applicationWillEnterForeground:(UIApplication *_Nullable)application;
|
|
84
|
+
+(void)sceneWillEnterForeground:(UIScene *_Nullable)scene API_AVAILABLE(ios(13.0));
|
|
85
|
+
|
|
86
|
+
+(void)applicationDidBecomeActive:(UIApplication *_Nullable)application;
|
|
87
|
+
+(void)sceneDidBecomeActive:(UIScene *_Nullable)scene API_AVAILABLE(ios(13.0));
|
|
88
|
+
|
|
89
|
+
+(void)applicationWillTerminate;
|
|
90
|
+
|
|
91
|
+
+(void)OpenUrlWithApplication:(UIApplication *_Nullable)application Url:(NSURL *_Nullable)url;
|
|
92
|
+
+(NSMutableDictionary*_Nullable)OpenUrlGetDataWithApplication: (UIApplication *_Nullable)application Url:(NSURL *_Nullable)url;
|
|
93
|
+
|
|
94
|
+
+(void)scene:(UIScene *_Nullable)scene willConnectToSession:(UISceneSession *_Nullable)session options:(UISceneConnectionOptions *_Nullable)connectionOptions API_AVAILABLE(ios(13.0));
|
|
95
|
+
+(void)scene:(UIScene *_Nullable)scene openURLContexts:(NSSet<UIOpenURLContext *> *_Nullable)URLContexts API_AVAILABLE(ios(13.0));
|
|
96
|
+
|
|
97
|
+
+(void)trackEvents:(NSString *_Nullable)event_name Attributes:(NSMutableDictionary *_Nullable)attributes lifetimeValue:(NSString *_Nullable)ltv Scope:(int)scope;
|
|
98
|
+
|
|
99
|
+
+(void)UserIdentifier:(NSString *_Nullable) userID UserParams:(NSMutableDictionary *_Nullable) UserParams;
|
|
100
|
+
+(void)getNvUid:(nv_UID _Nullable)nvUID;
|
|
101
|
+
|
|
102
|
+
+(void)Show:(NSMutableDictionary *_Nullable)UserTokens CustomRule:(NSMutableDictionary *_Nullable)customRule;
|
|
103
|
+
+(void)scrollViewDidScroll:(UIScrollView *_Nullable) scrollView;
|
|
104
|
+
+(void)DismissAllNotifyvisitorsInAppNotifications;
|
|
105
|
+
+(void)StopInAppNotifications;
|
|
106
|
+
+(void)requestAppleAppStoreInAppReview;
|
|
107
|
+
|
|
108
|
+
+(void)RegisterPushWithDelegate:(id _Nullable )delegate App:(UIApplication *_Nullable)application launchOptions:(NSDictionary *_Nullable)launchOptions;
|
|
109
|
+
+(void)DidRegisteredNotification:(UIApplication *_Nullable)application deviceToken:(NSData *_Nullable)deviceToken;
|
|
110
|
+
+(NSString *_Nullable)getPushRegistrationToken;
|
|
111
|
+
|
|
112
|
+
+(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;
|
|
113
|
+
|
|
114
|
+
+(void)pushPreferences:(NSArray *_Nullable)preferenceList isUnsubscribeFromAll:(BOOL)shouldUnsubscribe;
|
|
115
|
+
|
|
116
|
+
+(void)updatePushBadgeNumberWithValue:(nvPushBadgeCount)nvPushBadgeNumber;
|
|
117
|
+
|
|
118
|
+
+(void)didReceiveRemoteNotificationWithUserInfo:(NSDictionary *_Nullable)userInfo;
|
|
119
|
+
+(NSMutableDictionary *_Nullable)PushNotificationActionDataFromUserInfo:(NSDictionary *_Nullable)userinfo;
|
|
120
|
+
+(void)didReceiveRemoteNotification:(NSDictionary *_Nullable)userInfo fetchCompletionHandler:(void(^_Nullable)(UIBackgroundFetchResult))completionHandler;
|
|
121
|
+
|
|
122
|
+
+(void)willPresentNotification:(UNNotification *_Nullable)notification withCompletionHandler:(void (^_Nullable)(UNNotificationPresentationOptions options))completionHandler API_AVAILABLE(ios(10.0));
|
|
123
|
+
|
|
124
|
+
+(void)didReceiveNotificationResponse:(UNNotificationResponse *_Nullable)response API_AVAILABLE(ios(10.0));
|
|
125
|
+
+(void)PushNotificationActionDataFromResponse:(UNNotificationResponse *_Nullable)response AutoRedirectOtherApps:(BOOL)autoRedirect clickResponseData:(NotificationClickResponseData _Nullable )pushClickResponse API_AVAILABLE(ios(10.0));
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
+(void)NotifyVisitorsNotificationCentre DEPRECATED_MSG_ATTRIBUTE("first deprecated in Notifyvisitors iOS SDK 6.4.3 Use [notifyvisitors notificationCenter:] (see notifyvisitors.h)");
|
|
129
|
+
|
|
130
|
+
+(void)notificationCenter;
|
|
131
|
+
+(void)notificationCenterWithConfiguration:(NVCenterStyleConfig *_Nullable)configuration;
|
|
132
|
+
+(void)GetNotificationCentreData:(NotificationListData _Nullable ) notificationDataList DEPRECATED_MSG_ATTRIBUTE("first deprecated in Notifyvisitors iOS SDK 7.0.2 Use [notifyvisitors getNotificationCenterData:] to get reformated data response in NSDictionary format. (see notifyvisitors.h)");
|
|
133
|
+
|
|
134
|
+
+(void)getNotificationCenterData:(void(^_Nullable)(NSDictionary *_Nullable))notificationsData;
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
//GetNotificationCentreData:(NotificationListData _Nullable ) notificationDataList;
|
|
138
|
+
|
|
139
|
+
+(void)GetUnreadPushNotification:(nvGetCount _Nullable )nvUnreadCount;
|
|
140
|
+
+(void)getNotificationCenterCountWithConfiguration:(NVCenterStyleConfig *_Nullable)configuration countResult:(nvUnreadCenterCount _Nullable )unreadCenterCounts;
|
|
141
|
+
|
|
142
|
+
+(void)stopGeofencePushforDateTime:(NSString *_Nullable)nvDateTime additionalHours: (NSInteger)nvtimeinHours;
|
|
143
|
+
|
|
144
|
+
//+(void)startChatBotWithScreenName:(NSString *)nvBotScreenName;
|
|
145
|
+
|
|
146
|
+
+(void)LoadAttachmentWithRequest:(UNNotificationRequest *_Nullable)request bestAttemptContent:(UNMutableNotificationContent *_Nullable)bestAttemptContent withContentHandler:(nullable void (^)(UNNotificationContent * _Nonnull))contentHandler API_AVAILABLE(ios(10.0));
|
|
147
|
+
|
|
148
|
+
@end
|
|
Binary file
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>files</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>Assets.car</key>
|
|
8
|
+
<data>
|
|
9
|
+
9YxBcMOpOEB6e7RY4Ar1C8G17ns=
|
|
10
|
+
</data>
|
|
11
|
+
<key>Headers/notifyvisitors.h</key>
|
|
12
|
+
<data>
|
|
13
|
+
vFyxc/BjaXYc6xoIBqWZHZCjdwA=
|
|
14
|
+
</data>
|
|
15
|
+
<key>Info.plist</key>
|
|
16
|
+
<data>
|
|
17
|
+
J2F67xdC0Tq78zw63x3cSDf5F1E=
|
|
18
|
+
</data>
|
|
19
|
+
<key>Modules/module.modulemap</key>
|
|
20
|
+
<data>
|
|
21
|
+
ssqSvaUzlY/r6GHxmph0GIHY1NY=
|
|
22
|
+
</data>
|
|
23
|
+
</dict>
|
|
24
|
+
<key>files2</key>
|
|
25
|
+
<dict>
|
|
26
|
+
<key>Assets.car</key>
|
|
27
|
+
<dict>
|
|
28
|
+
<key>hash2</key>
|
|
29
|
+
<data>
|
|
30
|
+
bvVoM3jCMGiveQZSoOL3ESViq2i3sN/YwbqNtzy+Tgk=
|
|
31
|
+
</data>
|
|
32
|
+
</dict>
|
|
33
|
+
<key>Headers/notifyvisitors.h</key>
|
|
34
|
+
<dict>
|
|
35
|
+
<key>hash2</key>
|
|
36
|
+
<data>
|
|
37
|
+
v0w3U/I0tbvxSSQWcCBAIhg96i4cM9/4UdAChoDsmRk=
|
|
38
|
+
</data>
|
|
39
|
+
</dict>
|
|
40
|
+
<key>Modules/module.modulemap</key>
|
|
41
|
+
<dict>
|
|
42
|
+
<key>hash2</key>
|
|
43
|
+
<data>
|
|
44
|
+
Q32U9PPopKciPA3pgC16NrErqUjh1sFvUJqLPZbdSz4=
|
|
45
|
+
</data>
|
|
46
|
+
</dict>
|
|
47
|
+
</dict>
|
|
48
|
+
<key>rules</key>
|
|
49
|
+
<dict>
|
|
50
|
+
<key>^.*</key>
|
|
51
|
+
<true/>
|
|
52
|
+
<key>^.*\.lproj/</key>
|
|
53
|
+
<dict>
|
|
54
|
+
<key>optional</key>
|
|
55
|
+
<true/>
|
|
56
|
+
<key>weight</key>
|
|
57
|
+
<real>1000</real>
|
|
58
|
+
</dict>
|
|
59
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
60
|
+
<dict>
|
|
61
|
+
<key>omit</key>
|
|
62
|
+
<true/>
|
|
63
|
+
<key>weight</key>
|
|
64
|
+
<real>1100</real>
|
|
65
|
+
</dict>
|
|
66
|
+
<key>^Base\.lproj/</key>
|
|
67
|
+
<dict>
|
|
68
|
+
<key>weight</key>
|
|
69
|
+
<real>1010</real>
|
|
70
|
+
</dict>
|
|
71
|
+
<key>^version.plist$</key>
|
|
72
|
+
<true/>
|
|
73
|
+
</dict>
|
|
74
|
+
<key>rules2</key>
|
|
75
|
+
<dict>
|
|
76
|
+
<key>.*\.dSYM($|/)</key>
|
|
77
|
+
<dict>
|
|
78
|
+
<key>weight</key>
|
|
79
|
+
<real>11</real>
|
|
80
|
+
</dict>
|
|
81
|
+
<key>^(.*/)?\.DS_Store$</key>
|
|
82
|
+
<dict>
|
|
83
|
+
<key>omit</key>
|
|
84
|
+
<true/>
|
|
85
|
+
<key>weight</key>
|
|
86
|
+
<real>2000</real>
|
|
87
|
+
</dict>
|
|
88
|
+
<key>^.*</key>
|
|
89
|
+
<true/>
|
|
90
|
+
<key>^.*\.lproj/</key>
|
|
91
|
+
<dict>
|
|
92
|
+
<key>optional</key>
|
|
93
|
+
<true/>
|
|
94
|
+
<key>weight</key>
|
|
95
|
+
<real>1000</real>
|
|
96
|
+
</dict>
|
|
97
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
98
|
+
<dict>
|
|
99
|
+
<key>omit</key>
|
|
100
|
+
<true/>
|
|
101
|
+
<key>weight</key>
|
|
102
|
+
<real>1100</real>
|
|
103
|
+
</dict>
|
|
104
|
+
<key>^Base\.lproj/</key>
|
|
105
|
+
<dict>
|
|
106
|
+
<key>weight</key>
|
|
107
|
+
<real>1010</real>
|
|
108
|
+
</dict>
|
|
109
|
+
<key>^Info\.plist$</key>
|
|
110
|
+
<dict>
|
|
111
|
+
<key>omit</key>
|
|
112
|
+
<true/>
|
|
113
|
+
<key>weight</key>
|
|
114
|
+
<real>20</real>
|
|
115
|
+
</dict>
|
|
116
|
+
<key>^PkgInfo$</key>
|
|
117
|
+
<dict>
|
|
118
|
+
<key>omit</key>
|
|
119
|
+
<true/>
|
|
120
|
+
<key>weight</key>
|
|
121
|
+
<real>20</real>
|
|
122
|
+
</dict>
|
|
123
|
+
<key>^embedded\.provisionprofile$</key>
|
|
124
|
+
<dict>
|
|
125
|
+
<key>weight</key>
|
|
126
|
+
<real>20</real>
|
|
127
|
+
</dict>
|
|
128
|
+
<key>^version\.plist$</key>
|
|
129
|
+
<dict>
|
|
130
|
+
<key>weight</key>
|
|
131
|
+
<real>20</real>
|
|
132
|
+
</dict>
|
|
133
|
+
</dict>
|
|
134
|
+
</dict>
|
|
135
|
+
</plist>
|
|
Binary file
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
<dict/>
|
|
7
7
|
<key>nvBooleans</key>
|
|
8
8
|
<dict>
|
|
9
|
+
<key>nvStatusBarStyleLightContentInNormalMode</key>
|
|
10
|
+
<true/>
|
|
11
|
+
<key>nvStatusBarStyleLightContentInDarkMode</key>
|
|
12
|
+
<true/>
|
|
9
13
|
<key>nvShowHeaderView</key>
|
|
10
14
|
<false/>
|
|
11
15
|
<key>nvShowEmptyImageView</key>
|
|
@@ -30,7 +34,7 @@
|
|
|
30
34
|
<key>nvStrings</key>
|
|
31
35
|
<dict>
|
|
32
36
|
<key>nv_notificationCentreBackground</key>
|
|
33
|
-
<string
|
|
37
|
+
<string></string>
|
|
34
38
|
<key>nv_nc_NavigationBarBackgroundInNormalMode</key>
|
|
35
39
|
<string></string>
|
|
36
40
|
<key>nv_nc_NavigationBarBackgroundInDarkMode</key>
|
|
@@ -100,9 +104,9 @@
|
|
|
100
104
|
<string></string>
|
|
101
105
|
<key>nvCtaButtonBorderColor</key>
|
|
102
106
|
<string></string>
|
|
103
|
-
<key>
|
|
107
|
+
<key>nvCtaButtonOneTextColor</key>
|
|
104
108
|
<string></string>
|
|
105
|
-
<key>
|
|
109
|
+
<key>nvCtaButtonTwoTextColor</key>
|
|
106
110
|
<string></string>
|
|
107
111
|
<key>nvCopyCouponCodeTitleTextColor</key>
|
|
108
112
|
<string></string>
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|