reactnative-plugin-appice 1.7.25 → 1.7.27
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 +37 -37
- package/android/README.md +14 -14
- package/android/build.gradle +158 -158
- package/android/gitignore +47 -47
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -5
- package/android/gradlew +234 -234
- package/android/local.properties +8 -8
- package/android/src/main/AndroidManifest.xml +138 -164
- package/android/src/main/java/com/reactlibrary/AppICEUtils.java +274 -274
- package/android/src/main/java/com/reactlibrary/AppIceReactPluginModule.java +778 -778
- package/android/src/main/java/com/reactlibrary/AppIceReactPluginPackage.java +28 -28
- package/android/src/main/java/com/reactlibrary/CampaignCampsReceiver.java +56 -56
- package/android/src/main/java/com/reactlibrary/EnumConstants.java +282 -282
- package/android/src/main/java/com/reactlibrary/NotificationEventService.java +59 -59
- package/android/src/main/java/com/reactlibrary/StringConstants.java +24 -24
- package/campaign.js +25 -25
- package/example/App.js +332 -332
- package/example/Gemfile +6 -6
- package/example/PageA.tsx +15 -15
- package/example/__tests__/App-test.js +14 -14
- package/example/ancilliary.js +486 -486
- package/example/android/app/_BUCK +55 -55
- package/example/android/app/build.gradle +320 -320
- package/example/android/app/build_defs.bzl +19 -19
- package/example/android/app/proguard-rules.pro +10 -10
- package/example/android/app/src/debug/AndroidManifest.xml +13 -13
- package/example/android/app/src/debug/java/com/example/ReactNativeFlipper.java +73 -73
- package/example/android/app/src/main/AndroidManifest.xml +72 -72
- package/example/android/app/src/main/java/com/example/MainActivity.java +48 -48
- package/example/android/app/src/main/java/com/example/MainApplication.java +91 -91
- package/example/android/app/src/main/java/com/example/newarchitecture/MainApplicationReactNativeHost.java +116 -116
- package/example/android/app/src/main/java/com/example/newarchitecture/components/MainComponentsRegistry.java +36 -36
- package/example/android/app/src/main/java/com/example/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +48 -48
- package/example/android/app/src/main/jni/Android.mk +48 -48
- package/example/android/app/src/main/jni/MainApplicationModuleProvider.cpp +24 -24
- package/example/android/app/src/main/jni/MainApplicationModuleProvider.h +16 -16
- package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +45 -45
- package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +38 -38
- package/example/android/app/src/main/jni/MainComponentsRegistry.cpp +61 -61
- package/example/android/app/src/main/jni/MainComponentsRegistry.h +32 -32
- package/example/android/app/src/main/jni/OnLoad.cpp +11 -11
- package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -36
- package/example/android/app/src/main/res/values/strings.xml +3 -3
- package/example/android/app/src/main/res/values/styles.xml +9 -9
- package/example/android/build.gradle +73 -73
- package/example/android/gradle/wrapper/gradle-wrapper.properties +5 -5
- package/example/android/gradle.properties +40 -40
- package/example/android/gradlew +234 -234
- package/example/android/settings.gradle +11 -11
- package/example/app.json +3 -3
- package/example/babel.config.js +3 -3
- package/example/index.js +9 -9
- package/example/ios/Podfile +44 -44
- package/example/ios/Podfile.lock +561 -561
- package/example/ios/_xcode.env +11 -11
- package/example/ios/example/AppDelegate.h +8 -8
- package/example/ios/example/AppDelegate.mm +174 -174
- package/example/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json +53 -53
- package/example/ios/example/Images.xcassets/Contents.json +6 -6
- package/example/ios/example/Info.plist +62 -62
- package/example/ios/example/LaunchScreen.storyboard +47 -47
- package/example/ios/example/example.entitlements +8 -8
- package/example/ios/example/main.m +10 -10
- package/example/ios/example.xcodeproj/project.pbxproj +712 -712
- package/example/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme +88 -88
- package/example/ios/example.xcworkspace/contents.xcworkspacedata +10 -10
- package/example/ios/example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -8
- package/example/ios/exampleTests/Info.plist +24 -24
- package/example/ios/exampleTests/exampleTests.m +66 -66
- package/example/metro.config.js +17 -17
- package/example/package.json +36 -36
- package/example/yarn.lock +7176 -7176
- package/index.js +590 -590
- package/ios/AppICEReactEvent.h +23 -23
- package/ios/AppICEReactEvent.m +86 -86
- package/ios/AppIceReactPlugin.h +65 -65
- package/ios/AppIceReactPlugin.m +683 -683
- package/ios/AppIceReactPlugin.xcodeproj/project.pbxproj +364 -364
- package/ios/AppIceReactPlugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -4
- package/ios/AppIceReactPlugin.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -8
- package/ios/AppIceReactPlugin.xcodeproj/xcuserdata/Adi.xcuserdatad/xcschemes/xcschememanagement.plist +14 -14
- package/ios/AppIceReactPlugin.xcodeproj/xcuserdata/artherajesh.xcuserdatad/xcschemes/xcschememanagement.plist +14 -14
- package/ios/AppIceReactPlugin.xcworkspace/contents.xcworkspacedata +10 -10
- package/ios/AppIceReactPlugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -8
- package/ios/Podfile +10 -10
- package/ios/Podfile.lock +3 -3
- package/ios/Pods/Manifest.lock +3 -3
- package/ios/Pods/Pods.xcodeproj/project.pbxproj +395 -395
- package/ios/Pods/Pods.xcodeproj/xcuserdata/Adi.xcuserdatad/xcschemes/Pods-AppIceReactPlugin.xcscheme +58 -58
- package/ios/Pods/Pods.xcodeproj/xcuserdata/Adi.xcuserdatad/xcschemes/xcschememanagement.plist +18 -18
- package/ios/Pods/Pods.xcodeproj/xcuserdata/artherajesh.xcuserdatad/xcschemes/xcschememanagement.plist +14 -14
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-Info.plist +26 -26
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-acknowledgements.markdown +3 -3
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-acknowledgements.plist +29 -29
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-dummy.m +5 -5
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin-umbrella.h +16 -16
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin.debug.xcconfig +6 -6
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin.modulemap +6 -6
- package/ios/Pods/Target Support Files/Pods-AppIceReactPlugin/Pods-AppIceReactPlugin.release.xcconfig +6 -6
- package/package.json +42 -42
- package/reactnative-plugin-appice.podspec +30 -30
- package/example/android/.gradle/7.3.3/checksums/checksums.lock +0 -0
- package/example/android/.gradle/7.3.3/fileChanges/last-build.bin +0 -0
- package/example/android/.gradle/7.3.3/fileHashes/fileHashes.lock +0 -0
- package/example/android/.gradle/7.3.3/gc.properties +0 -0
- package/example/android/.gradle/vcs-1/gc.properties +0 -0
package/ios/AppICEReactEvent.h
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
//
|
|
2
|
-
// AppICEReactEvent.h
|
|
3
|
-
// AppIceReactPlugin
|
|
4
|
-
//
|
|
5
|
-
// Created by Garima Paliwal on 09/08/22.
|
|
6
|
-
// Copyright © 2022 Facebook. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
#import <React/RCTBridgeModule.h>
|
|
11
|
-
#import <React/RCTEventEmitter.h>
|
|
12
|
-
#import <UserNotifications/UserNotifications.h>
|
|
13
|
-
|
|
14
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
15
|
-
|
|
16
|
-
@interface AppICEReactEvent : RCTEventEmitter <RCTBridgeModule, UNUserNotificationCenterDelegate>
|
|
17
|
-
-(void)didReceiveNotificationResponse:(NSNotification *)event;
|
|
18
|
-
+ (id)allocWithZone:(NSZone *)zone;
|
|
19
|
-
-(void)InAppCallback:(NSNotification *)event;
|
|
20
|
-
|
|
21
|
-
@end
|
|
22
|
-
|
|
23
|
-
NS_ASSUME_NONNULL_END
|
|
1
|
+
//
|
|
2
|
+
// AppICEReactEvent.h
|
|
3
|
+
// AppIceReactPlugin
|
|
4
|
+
//
|
|
5
|
+
// Created by Garima Paliwal on 09/08/22.
|
|
6
|
+
// Copyright © 2022 Facebook. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <React/RCTBridgeModule.h>
|
|
11
|
+
#import <React/RCTEventEmitter.h>
|
|
12
|
+
#import <UserNotifications/UserNotifications.h>
|
|
13
|
+
|
|
14
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
15
|
+
|
|
16
|
+
@interface AppICEReactEvent : RCTEventEmitter <RCTBridgeModule, UNUserNotificationCenterDelegate>
|
|
17
|
+
-(void)didReceiveNotificationResponse:(NSNotification *)event;
|
|
18
|
+
+ (id)allocWithZone:(NSZone *)zone;
|
|
19
|
+
-(void)InAppCallback:(NSNotification *)event;
|
|
20
|
+
|
|
21
|
+
@end
|
|
22
|
+
|
|
23
|
+
NS_ASSUME_NONNULL_END
|
package/ios/AppICEReactEvent.m
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
#import "AppICEReactEvent.h"
|
|
2
|
-
#import <React/RCTEventEmitter.h>
|
|
3
|
-
#import <UserNotifications/UserNotifications.h>
|
|
4
|
-
#import "AppIceReactPlugin.h"
|
|
5
|
-
#import <React/RCTLog.h>
|
|
6
|
-
@implementation AppICEReactEvent
|
|
7
|
-
|
|
8
|
-
RCT_EXPORT_MODULE();
|
|
9
|
-
|
|
10
|
-
+ (BOOL)requiresMainQueueSetup {
|
|
11
|
-
return NO;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
- (dispatch_queue_t)methodQueue {
|
|
15
|
-
return dispatch_get_main_queue();
|
|
16
|
-
}
|
|
17
|
-
+ (id)allocWithZone:(NSZone *)zone {
|
|
18
|
-
static AppICEReactEvent *sharedInstance = nil;
|
|
19
|
-
static dispatch_once_t onceToken;
|
|
20
|
-
dispatch_once(&onceToken, ^{
|
|
21
|
-
sharedInstance = [super allocWithZone:zone];
|
|
22
|
-
// [sharedInstance startObserving];
|
|
23
|
-
});
|
|
24
|
-
return sharedInstance;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
- (instancetype)init
|
|
29
|
-
{
|
|
30
|
-
// if ((self = [super init]))
|
|
31
|
-
// {
|
|
32
|
-
// [self startObserving];
|
|
33
|
-
// }
|
|
34
|
-
return self;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
- (NSArray<NSString *> *)supportedEvents
|
|
38
|
-
{
|
|
39
|
-
return @[kAppICEPushNotificationClicked, kAppICEInAppClicked];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
- (void)startObserving {
|
|
44
|
-
[[NSNotificationCenter defaultCenter] addObserver:self
|
|
45
|
-
selector:@selector(didReceiveNotificationResponse:)
|
|
46
|
-
name:kAppICEPushNotificationClicked
|
|
47
|
-
object:nil];
|
|
48
|
-
|
|
49
|
-
[[NSNotificationCenter defaultCenter] addObserver:self
|
|
50
|
-
selector:@selector(InAppCallback:)
|
|
51
|
-
name:kAppICEInAppClicked
|
|
52
|
-
object:nil];
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
- (void)stopObserving {
|
|
59
|
-
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
-(void)didReceiveNotificationResponse:(NSNotification *)event{
|
|
67
|
-
[self sendEventWithName:kAppICEPushNotificationClicked body:event.userInfo];
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/** InAppCallback with Arguments NSNotification
|
|
71
|
-
* Converts userInfo property of NSNotification oject to a JSON string
|
|
72
|
-
* Setting a Value in the Dictionary
|
|
73
|
-
* Sending an Event */
|
|
74
|
-
|
|
75
|
-
-(void)InAppCallback:(NSNotification *)event{
|
|
76
|
-
RCTLog(@"from InAppCallback %@",event);
|
|
77
|
-
NSError * err;
|
|
78
|
-
NSData * jsonUserInfo = [NSJSONSerialization dataWithJSONObject:event.userInfo options:0 error:&err];
|
|
79
|
-
NSMutableDictionary * eventDict = [[NSMutableDictionary alloc]init];
|
|
80
|
-
[eventDict setObject:[[NSString alloc] initWithData:jsonUserInfo encoding:NSUTF8StringEncoding] forKey:kAppICEInAppClicked];
|
|
81
|
-
RCTLog(@"eventDict %@",eventDict);
|
|
82
|
-
[self sendEventWithName:kAppICEInAppClicked body:eventDict];
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
@end
|
|
86
|
-
|
|
1
|
+
#import "AppICEReactEvent.h"
|
|
2
|
+
#import <React/RCTEventEmitter.h>
|
|
3
|
+
#import <UserNotifications/UserNotifications.h>
|
|
4
|
+
#import "AppIceReactPlugin.h"
|
|
5
|
+
#import <React/RCTLog.h>
|
|
6
|
+
@implementation AppICEReactEvent
|
|
7
|
+
|
|
8
|
+
RCT_EXPORT_MODULE();
|
|
9
|
+
|
|
10
|
+
+ (BOOL)requiresMainQueueSetup {
|
|
11
|
+
return NO;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
- (dispatch_queue_t)methodQueue {
|
|
15
|
+
return dispatch_get_main_queue();
|
|
16
|
+
}
|
|
17
|
+
+ (id)allocWithZone:(NSZone *)zone {
|
|
18
|
+
static AppICEReactEvent *sharedInstance = nil;
|
|
19
|
+
static dispatch_once_t onceToken;
|
|
20
|
+
dispatch_once(&onceToken, ^{
|
|
21
|
+
sharedInstance = [super allocWithZone:zone];
|
|
22
|
+
// [sharedInstance startObserving];
|
|
23
|
+
});
|
|
24
|
+
return sharedInstance;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
- (instancetype)init
|
|
29
|
+
{
|
|
30
|
+
// if ((self = [super init]))
|
|
31
|
+
// {
|
|
32
|
+
// [self startObserving];
|
|
33
|
+
// }
|
|
34
|
+
return self;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
- (NSArray<NSString *> *)supportedEvents
|
|
38
|
+
{
|
|
39
|
+
return @[kAppICEPushNotificationClicked, kAppICEInAppClicked];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
- (void)startObserving {
|
|
44
|
+
[[NSNotificationCenter defaultCenter] addObserver:self
|
|
45
|
+
selector:@selector(didReceiveNotificationResponse:)
|
|
46
|
+
name:kAppICEPushNotificationClicked
|
|
47
|
+
object:nil];
|
|
48
|
+
|
|
49
|
+
[[NSNotificationCenter defaultCenter] addObserver:self
|
|
50
|
+
selector:@selector(InAppCallback:)
|
|
51
|
+
name:kAppICEInAppClicked
|
|
52
|
+
object:nil];
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
- (void)stopObserving {
|
|
59
|
+
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
-(void)didReceiveNotificationResponse:(NSNotification *)event{
|
|
67
|
+
[self sendEventWithName:kAppICEPushNotificationClicked body:event.userInfo];
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** InAppCallback with Arguments NSNotification
|
|
71
|
+
* Converts userInfo property of NSNotification oject to a JSON string
|
|
72
|
+
* Setting a Value in the Dictionary
|
|
73
|
+
* Sending an Event */
|
|
74
|
+
|
|
75
|
+
-(void)InAppCallback:(NSNotification *)event{
|
|
76
|
+
RCTLog(@"from InAppCallback %@",event);
|
|
77
|
+
NSError * err;
|
|
78
|
+
NSData * jsonUserInfo = [NSJSONSerialization dataWithJSONObject:event.userInfo options:0 error:&err];
|
|
79
|
+
NSMutableDictionary * eventDict = [[NSMutableDictionary alloc]init];
|
|
80
|
+
[eventDict setObject:[[NSString alloc] initWithData:jsonUserInfo encoding:NSUTF8StringEncoding] forKey:kAppICEInAppClicked];
|
|
81
|
+
RCTLog(@"eventDict %@",eventDict);
|
|
82
|
+
[self sendEventWithName:kAppICEInAppClicked body:eventDict];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@end
|
|
86
|
+
|
package/ios/AppIceReactPlugin.h
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
#import <React/RCTBridgeModule.h>
|
|
2
|
-
#import <UserNotifications/UserNotifications.h>
|
|
3
|
-
static NSString *const kAppICEPushNotificationClicked = @"AppICEPushNotificationClicked";
|
|
4
|
-
static NSString *const kAppICEInAppClicked = @"AppICEInAppClicked";
|
|
5
|
-
|
|
6
|
-
static NSString *const kn = @"APPICE_USER_NAME";
|
|
7
|
-
static NSString *const kem = @"APPICE_USER_EMAIL";
|
|
8
|
-
static NSString *const kph = @"APPICE_USER_PHONE";
|
|
9
|
-
static NSString *const ka = @"APPICE_USER_AGE";
|
|
10
|
-
static NSString *const kg = @"APPICE_USER_GENDER";
|
|
11
|
-
static NSString *const ked = @"APPICE_USER_EDUCATION_TYPE";
|
|
12
|
-
static NSString *const ket = @"APPICE_USER_EMPLOYMENT_TYPE";
|
|
13
|
-
static NSString *const km = @"APPICE_USER_MARRIED";
|
|
14
|
-
static NSString *const kis_emp = @"APPICE_USER_IS_EMPLOYED";
|
|
15
|
-
static NSString *const kappICEToken = @"appICEToken";
|
|
16
|
-
static NSString *const kdob = @"APPICE_DATE_OF_BIRTH";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
static NSString *const INBOX_MESSAGE = @"INBOX_MESSAGE";
|
|
21
|
-
static NSString *const INBOX_TITLE = @"INBOX_TITLE";
|
|
22
|
-
static NSString *const INBOX_MESSAGE_STATUS = @"INBOX_MESSAGE_STATUS";
|
|
23
|
-
static NSString *const INBOX_CAMPAIGN_TYPE = @"INBOX_CAMPAIGN_TYPE";
|
|
24
|
-
static NSString *const INBOX_MESSAGE_LANGUAGE = @"INBOX_MESSAGE_LANGUAGE";
|
|
25
|
-
static NSString *const INBOX_MESSAGE_ID = @"INBOX_MESSAGE_ID";
|
|
26
|
-
static NSString *const INBOX_CAMPAIGN_ID = @"INBOX_CAMPAIGN_ID";
|
|
27
|
-
static NSString *const INBOX_MESSAGE_CATEGORY = @"INBOX_MESSAGE_CATEGORY";
|
|
28
|
-
static NSString *const INBOX_MESSAGE_ICON = @"INBOX_MESSAGE_ICON";
|
|
29
|
-
static NSString *const INBOX_CUSTOM_DATA = @"INBOX_CUSTOM_DATA";
|
|
30
|
-
static NSString *const INBOX_MESSAGE_EXPANDED_IMAGE = @"INBOX_MESSAGE_EXPANDED_IMAGE";
|
|
31
|
-
|
|
32
|
-
//CAMPAIGN
|
|
33
|
-
static NSString *const CAMP_ID = @"CAMP_ID";
|
|
34
|
-
static NSString *const ACTION_URL = @"ACTION_URL";
|
|
35
|
-
static NSString *const ACTION_TYPE = @"ACTION_TYPE";
|
|
36
|
-
static NSString *const CUSTOMDATA = @"CUSTOMDATA";
|
|
37
|
-
|
|
38
|
-
// Custom data
|
|
39
|
-
static NSString *const DEMOGRAPHIC_INFO = @"DEMOGRAPHIC_INFO";
|
|
40
|
-
static NSString *TOP_N_PRODUCTS_VIEWED;
|
|
41
|
-
static NSString *N_COMPLAINTS_RAISED;
|
|
42
|
-
static NSString *PREF_LOGIN_DEVICE;
|
|
43
|
-
static NSString *REFERRAL_CAMPAIGN;
|
|
44
|
-
static NSString *FIRST_SEEN;
|
|
45
|
-
static NSString *LAST_SEEN;
|
|
46
|
-
|
|
47
|
-
// Ecommerce
|
|
48
|
-
static NSString *TOTAL_ORDER_VALUE;
|
|
49
|
-
static NSString *ADD_TO_CART_N_DAYS;
|
|
50
|
-
|
|
51
|
-
// Financial Services
|
|
52
|
-
static NSString *CREDIT_SCORE;
|
|
53
|
-
static NSString *DEBT_TO_INCOME_RATIO;
|
|
54
|
-
static NSString *SAVINGS_BALANCE;
|
|
55
|
-
static NSString *CHECKING_BALANCE;
|
|
56
|
-
static NSString *AVERAGE_TRANSACTION_AMOUNT;
|
|
57
|
-
static NSString *FREQUENCY_OF_TRANSACTION;
|
|
58
|
-
static NSString *TYPE_OF_TRANSACTION;
|
|
59
|
-
|
|
60
|
-
@interface AppIceReactPlugin : NSObject <RCTBridgeModule,UNUserNotificationCenterDelegate>
|
|
61
|
-
+(void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken;
|
|
62
|
-
+ (void)pushNotificationClicked:(NSDictionary *)userInfo;
|
|
63
|
-
+ (void)pushNotificationReceived:(NSDictionary *)userInfo;
|
|
64
|
-
@end
|
|
65
|
-
|
|
1
|
+
#import <React/RCTBridgeModule.h>
|
|
2
|
+
#import <UserNotifications/UserNotifications.h>
|
|
3
|
+
static NSString *const kAppICEPushNotificationClicked = @"AppICEPushNotificationClicked";
|
|
4
|
+
static NSString *const kAppICEInAppClicked = @"AppICEInAppClicked";
|
|
5
|
+
|
|
6
|
+
static NSString *const kn = @"APPICE_USER_NAME";
|
|
7
|
+
static NSString *const kem = @"APPICE_USER_EMAIL";
|
|
8
|
+
static NSString *const kph = @"APPICE_USER_PHONE";
|
|
9
|
+
static NSString *const ka = @"APPICE_USER_AGE";
|
|
10
|
+
static NSString *const kg = @"APPICE_USER_GENDER";
|
|
11
|
+
static NSString *const ked = @"APPICE_USER_EDUCATION_TYPE";
|
|
12
|
+
static NSString *const ket = @"APPICE_USER_EMPLOYMENT_TYPE";
|
|
13
|
+
static NSString *const km = @"APPICE_USER_MARRIED";
|
|
14
|
+
static NSString *const kis_emp = @"APPICE_USER_IS_EMPLOYED";
|
|
15
|
+
static NSString *const kappICEToken = @"appICEToken";
|
|
16
|
+
static NSString *const kdob = @"APPICE_DATE_OF_BIRTH";
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
static NSString *const INBOX_MESSAGE = @"INBOX_MESSAGE";
|
|
21
|
+
static NSString *const INBOX_TITLE = @"INBOX_TITLE";
|
|
22
|
+
static NSString *const INBOX_MESSAGE_STATUS = @"INBOX_MESSAGE_STATUS";
|
|
23
|
+
static NSString *const INBOX_CAMPAIGN_TYPE = @"INBOX_CAMPAIGN_TYPE";
|
|
24
|
+
static NSString *const INBOX_MESSAGE_LANGUAGE = @"INBOX_MESSAGE_LANGUAGE";
|
|
25
|
+
static NSString *const INBOX_MESSAGE_ID = @"INBOX_MESSAGE_ID";
|
|
26
|
+
static NSString *const INBOX_CAMPAIGN_ID = @"INBOX_CAMPAIGN_ID";
|
|
27
|
+
static NSString *const INBOX_MESSAGE_CATEGORY = @"INBOX_MESSAGE_CATEGORY";
|
|
28
|
+
static NSString *const INBOX_MESSAGE_ICON = @"INBOX_MESSAGE_ICON";
|
|
29
|
+
static NSString *const INBOX_CUSTOM_DATA = @"INBOX_CUSTOM_DATA";
|
|
30
|
+
static NSString *const INBOX_MESSAGE_EXPANDED_IMAGE = @"INBOX_MESSAGE_EXPANDED_IMAGE";
|
|
31
|
+
|
|
32
|
+
//CAMPAIGN
|
|
33
|
+
static NSString *const CAMP_ID = @"CAMP_ID";
|
|
34
|
+
static NSString *const ACTION_URL = @"ACTION_URL";
|
|
35
|
+
static NSString *const ACTION_TYPE = @"ACTION_TYPE";
|
|
36
|
+
static NSString *const CUSTOMDATA = @"CUSTOMDATA";
|
|
37
|
+
|
|
38
|
+
// Custom data
|
|
39
|
+
static NSString *const DEMOGRAPHIC_INFO = @"DEMOGRAPHIC_INFO";
|
|
40
|
+
static NSString *TOP_N_PRODUCTS_VIEWED;
|
|
41
|
+
static NSString *N_COMPLAINTS_RAISED;
|
|
42
|
+
static NSString *PREF_LOGIN_DEVICE;
|
|
43
|
+
static NSString *REFERRAL_CAMPAIGN;
|
|
44
|
+
static NSString *FIRST_SEEN;
|
|
45
|
+
static NSString *LAST_SEEN;
|
|
46
|
+
|
|
47
|
+
// Ecommerce
|
|
48
|
+
static NSString *TOTAL_ORDER_VALUE;
|
|
49
|
+
static NSString *ADD_TO_CART_N_DAYS;
|
|
50
|
+
|
|
51
|
+
// Financial Services
|
|
52
|
+
static NSString *CREDIT_SCORE;
|
|
53
|
+
static NSString *DEBT_TO_INCOME_RATIO;
|
|
54
|
+
static NSString *SAVINGS_BALANCE;
|
|
55
|
+
static NSString *CHECKING_BALANCE;
|
|
56
|
+
static NSString *AVERAGE_TRANSACTION_AMOUNT;
|
|
57
|
+
static NSString *FREQUENCY_OF_TRANSACTION;
|
|
58
|
+
static NSString *TYPE_OF_TRANSACTION;
|
|
59
|
+
|
|
60
|
+
@interface AppIceReactPlugin : NSObject <RCTBridgeModule,UNUserNotificationCenterDelegate>
|
|
61
|
+
+(void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken;
|
|
62
|
+
+ (void)pushNotificationClicked:(NSDictionary *)userInfo;
|
|
63
|
+
+ (void)pushNotificationReceived:(NSDictionary *)userInfo;
|
|
64
|
+
@end
|
|
65
|
+
|