reactnative-plugin-appice 1.5.7 → 1.5.8
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/example/App.js +5 -0
- package/ios/AppIceReactPlugin.m +6 -6
- package/package.json +1 -1
package/example/App.js
CHANGED
|
@@ -128,6 +128,11 @@ const setSampleUserID = () => {
|
|
|
128
128
|
const setLanguage = () => {
|
|
129
129
|
AppICE.setCustomVariable("_lang", "ar-AE");
|
|
130
130
|
|
|
131
|
+
|
|
132
|
+
AppICE.sendClickCallback((value) => {
|
|
133
|
+
console.log(`INAPP callback`, value);
|
|
134
|
+
});
|
|
135
|
+
|
|
131
136
|
};
|
|
132
137
|
const sendView = () => {
|
|
133
138
|
AppICE.tagEvent("HomeScreen", {});
|
package/ios/AppIceReactPlugin.m
CHANGED
|
@@ -15,14 +15,14 @@ RCT_EXPORT_MODULE()
|
|
|
15
15
|
return @{
|
|
16
16
|
kAppICEPushNotificationClicked : kAppICEPushNotificationClicked,
|
|
17
17
|
kn : kn,
|
|
18
|
-
kem : "e",
|
|
19
|
-
kph : "p",
|
|
18
|
+
kem : @"e",
|
|
19
|
+
kph : @"p",
|
|
20
20
|
ka : ka,
|
|
21
21
|
kg : kg,
|
|
22
|
-
ked : "edt",
|
|
23
|
-
ket : "emt",
|
|
22
|
+
ked : @"edt",
|
|
23
|
+
ket : @"emt",
|
|
24
24
|
km : km,
|
|
25
|
-
kis_emp : "em"
|
|
25
|
+
kis_emp : @"em"
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
- (dispatch_queue_t)methodQueue {
|
|
@@ -107,7 +107,7 @@ RCT_EXPORT_METHOD(pushNotificationClicked:(NSDictionary*)userInfo)
|
|
|
107
107
|
RCT_EXPORT_METHOD(setUser:(NSDictionary*)userProfile)
|
|
108
108
|
{
|
|
109
109
|
NSArray *items = [NSArray arrayWithObjects:kAIUserName,kAIUserEmail,kAIUserPhone,kAIUserGender,kAIUserBirthYear,kAIUserAge,kAIUserIsUserEmployed,kAIUserEmploymentType,kAIUserEducationType,kAIUserIsUserMarried, nil];
|
|
110
|
-
|
|
110
|
+
appICEUserDetails *app=[appICEUserDetails new];
|
|
111
111
|
for(int i= 0; i< items.count ;i++)
|
|
112
112
|
{
|
|
113
113
|
|