react-native-mapp-plugin 1.3.0 → 1.3.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.
Files changed (61) hide show
  1. package/.idea/Mapp-Engage-ReactNative-Plugin.iml +9 -0
  2. package/.idea/caches/deviceStreaming.xml +787 -0
  3. package/.idea/misc.xml +6 -0
  4. package/.idea/modules.xml +8 -0
  5. package/.idea/vcs.xml +6 -0
  6. package/CHANGELOG.md +21 -0
  7. package/Mapp.js +36 -7
  8. package/RNMappPlugin.podspec +2 -2
  9. package/android/.settings/org.eclipse.buildship.core.prefs +1 -1
  10. package/android/build.gradle +10 -10
  11. package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  12. package/android/settings.gradle +3 -3
  13. package/android/src/main/AndroidManifest.xml +3 -3
  14. package/android/src/main/java/com/reactlibrary/RNMappPluginModule.java +68 -1
  15. package/build/generated/ios/MappEngagePluginSpec/MappEngagePluginSpec-generated.mm +16 -0
  16. package/build/generated/ios/MappEngagePluginSpec/MappEngagePluginSpec.h +38 -0
  17. package/build/generated/ios/MappEngagePluginSpecJSI-generated.cpp +17 -0
  18. package/build/generated/ios/MappEngagePluginSpecJSI.h +19 -0
  19. package/build/generated/ios/RCTAppDependencyProvider.h +25 -0
  20. package/build/generated/ios/RCTAppDependencyProvider.mm +35 -0
  21. package/build/generated/ios/RCTModuleProviders.h +16 -0
  22. package/build/generated/ios/RCTModuleProviders.mm +51 -0
  23. package/build/generated/ios/RCTModulesConformingToProtocolsProvider.h +18 -0
  24. package/build/generated/ios/RCTModulesConformingToProtocolsProvider.mm +54 -0
  25. package/build/generated/ios/RCTThirdPartyComponentsProvider.h +16 -0
  26. package/build/generated/ios/RCTThirdPartyComponentsProvider.mm +30 -0
  27. package/build/generated/ios/ReactAppDependencyProvider.podspec +34 -0
  28. package/ios/Frameworks/AppoxeeLocationServices.xcframework/Info.plist +48 -0
  29. package/ios/Frameworks/AppoxeeLocationServices.xcframework/ios-arm64/libAppoxeeLocationServices.a +0 -0
  30. package/ios/Frameworks/AppoxeeLocationServices.xcframework/ios-arm64_x86_64-simulator/Headers/AppoxeeLocationManager.h +122 -0
  31. package/ios/Frameworks/AppoxeeLocationServices.xcframework/ios-arm64_x86_64-simulator/Headers/AppoxeeLocationServices.h +11 -0
  32. package/ios/Frameworks/AppoxeeLocationServices.xcframework/ios-arm64_x86_64-simulator/libAppoxeeLocationServices.a +0 -0
  33. package/ios/Frameworks/AppoxeeSDK.xcframework/Info.plist +48 -0
  34. package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXClientDevice.h +1 -0
  35. package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXPushNotificationActionButtonAction.h +3 -2
  36. package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/Appoxee.h +39 -2
  37. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64/libAppoxeeSDK.a +0 -0
  38. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXClientDevice.h +27 -0
  39. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXInterfaceService.h +49 -0
  40. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXPushNotification.h +92 -0
  41. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXPushNotificationAction.h +20 -0
  42. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXPushNotificationActionButton.h +19 -0
  43. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXPushNotificationActionButtonAction.h +36 -0
  44. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXRichMessage.h +58 -0
  45. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/Appoxee.h +877 -0
  46. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/AppoxeeManager.h +386 -0
  47. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/AppoxeeSDK.h +12 -0
  48. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/libAppoxeeSDK.a +0 -0
  49. package/ios/RNMappPluginModule.m +25 -0
  50. package/package.json +7 -7
  51. package/ios/Frameworks/AppoxeeLocationServices.framework/Versions/A/AppoxeeLocationServices +0 -0
  52. package/ios/Frameworks/AppoxeeSDK.framework/Versions/A/AppoxeeSDK +0 -0
  53. /package/ios/Frameworks/{AppoxeeLocationServices.framework/Versions/A → AppoxeeLocationServices.xcframework/ios-arm64}/Headers/AppoxeeLocationManager.h +0 -0
  54. /package/ios/Frameworks/{AppoxeeLocationServices.framework/Versions/A → AppoxeeLocationServices.xcframework/ios-arm64}/Headers/AppoxeeLocationServices.h +0 -0
  55. /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXInterfaceService.h +0 -0
  56. /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXPushNotification.h +0 -0
  57. /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXPushNotificationAction.h +0 -0
  58. /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXPushNotificationActionButton.h +0 -0
  59. /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXRichMessage.h +0 -0
  60. /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/AppoxeeManager.h +0 -0
  61. /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/AppoxeeSDK.h +0 -0
@@ -0,0 +1,386 @@
1
+ //
2
+ // AppoxeeManager.h
3
+ // AppoxeeSDK
4
+ //
5
+ // Created by Raz Elkayam on 12/25/14.
6
+ // Copyright (c) 2014 Appoxee. All rights reserved.
7
+ //
8
+
9
+ #import <UIKit/UIKit.h>
10
+ #import "APXPushNotification.h"
11
+ #import "APXRichMessage.h"
12
+ #import "APXClientDevice.h"
13
+
14
+ @class AppoxeeManager;
15
+
16
+ @protocol AppoxeeDelegate <NSObject>
17
+
18
+ @required
19
+ /**
20
+ Provide Appoxee with an SDK ID.
21
+ @brief Method will transfer SDK ID data to Appoxee Manager.
22
+ @return NSString representation of the SDK ID.
23
+ */
24
+ - (nonnull NSString *)AppoxeeDelegateAppSDKID DEPRECATED_MSG_ATTRIBUTE("using engageWithLaunchOptions:andDelegate:andSDKID: does not require implementing this method");
25
+
26
+ /**
27
+ Provide Appoxee with an App Secret.
28
+ @brief Method will transfer App Secret data to Appoxee Manager.
29
+ @return NSString representation of the App Secret.
30
+ */
31
+ - (nonnull NSString *)AppoxeeDelegateAppSecret DEPRECATED_MSG_ATTRIBUTE("using engageWithLaunchOptions:andDelegate:andSDKID: does not require implementing this method");
32
+
33
+ @optional
34
+ /**
35
+ Delegate method for notifing when a Push Notification is recieved when the application is closed.
36
+ @brief use this method to be alrted when a Push Notification initiates your application.
37
+ @param userInfo an NSDictionary representation of a Push Notification
38
+ */
39
+ - (void)appDidOpenFromPushNotification:(nonnull NSDictionary *)userInfo DEPRECATED_MSG_ATTRIBUTE("Use appoxeeManager:handledRemoteNotification:andIdentifer: instead.");
40
+
41
+ /**
42
+ Delegate method for udpating application badge icon.
43
+ @brief use this method to keep your application badge icon updated with the current notifications count.
44
+ @param badgeNum An Int value with the amount of Notifications pending.
45
+ @param hasNumberChanged A BOOL value indicating if the @c badgeNum has changed.
46
+ */
47
+ - (void)AppoxeeNeedsToUpdateBadge:(int)badgeNum hasNumberChanged:(BOOL)hasNumberChanged DEPRECATED_MSG_ATTRIBUTE("Use appoxeeManager:handledRemoteNotification:andIdentifer: instead.");
48
+
49
+ // Deprecated delegate methods
50
+ - (void)appoxeeInteractivePushNotificationPressedWithCategory:(nonnull NSString*)category andPayload:(nonnull NSDictionary*)pushPayload DEPRECATED_MSG_ATTRIBUTE("No calls will be forwarded to this method. Use appoxeeManager:handledRemoteNotification:andIdentifer: instead.");
51
+ - (void)appoxeeInteractivePushButton1PressedWithCategory:(nonnull NSString*)category andPayload:(nonnull NSDictionary*)pushPayload DEPRECATED_MSG_ATTRIBUTE("No calls will be forwarded to this method. Use appoxeeManager:handledRemoteNotification:andIdentifer: instead.");
52
+ - (void)appoxeeInteractivePushButton2PressedWithCategory:(nonnull NSString*)category andPayload:(nonnull NSDictionary*)pushPayload DEPRECATED_MSG_ATTRIBUTE("No calls will be forwarded to this method. Use appoxeeManager:handledRemoteNotification:andIdentifer: instead.");
53
+ - (void)AppoxeeDelegateReciveAppoxeeClosed DEPRECATED_MSG_ATTRIBUTE("No calls will be forwarded to this method.");
54
+ - (void)AppoxeeDelegateReciveAppoxeeRequestFocus DEPRECATED_MSG_ATTRIBUTE("No calls will be forwarded to this method.");
55
+ - (BOOL)shouldAppoxeeRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation DEPRECATED_MSG_ATTRIBUTE("No calls will be forwarded to this method.");
56
+
57
+ @end
58
+
59
+ @interface AppoxeeManager : NSObject
60
+
61
+ + (nullable instancetype)sharedManager;
62
+
63
+ #pragma mark - Appoxee Push Service Legacy
64
+
65
+ /**
66
+ Method for initializaing Appoxee Manager.
67
+ @brief Initialize Appoxee Manager with a Delegate and launchOptions.
68
+ @see engageWithLaunchOptions:andDelegate:andSDKID:
69
+ @param delegate A Delegate which implements AppoxeeDelegate protocol.
70
+ @param options NSDictionay containing options for AppoxeeManager provided by the implementing developer.
71
+ */
72
+ - (void)initManagerWithDelegate:(nullable id<AppoxeeDelegate>)delegate andOptions:(nullable NSDictionary *)options DEPRECATED_MSG_ATTRIBUTE("use engageWithLaunchOptions:andDelegate:andSDKID: instead.");
73
+
74
+ /**
75
+ Method for parsing launchOptions by Appoxee Manager.
76
+ @brief Parse launchOptions by Appoxee Manager.
77
+ @see engageWithLaunchOptions:andDelegate:andSDKID:
78
+ @param launchOptions NSDictionay containing launchOptions for AppoxeeManager provided by ApplicationDidLaunch method.
79
+ */
80
+ - (void)managerParseLaunchOptions:(nullable NSDictionary *)launchOptions DEPRECATED_MSG_ATTRIBUTE("use engageWithLaunchOptions:andDelegate:andSDKID: instead.");
81
+
82
+ #pragma mark - Push Handling Legacy
83
+
84
+ /**
85
+ Method for notifing AppoxeeManager a remote Push Notification was received to the device.
86
+ @brief Use this method to pass info to Appoxee Manager regarding incoming Push messages.
87
+ @see receivedRemoteNotification:
88
+ @param userInfo NSDictionary object containing user info with Push payload.
89
+ @return YES, always returns YES.
90
+ */
91
+ - (BOOL)didReceiveRemoteNotification:(nullable NSDictionary *)userInfo DEPRECATED_MSG_ATTRIBUTE("use receivedRemoteNotification: instead.");
92
+
93
+ /**
94
+ Method for notifing AppoxeeManager a token was received.
95
+ @brief Use this method for notifing AppoxeeManager a token was received.
96
+ @see didRegisterForRemoteNotificationsWithDeviceToken:
97
+ @param token NSData object containing user token.
98
+ */
99
+ - (void)didRegisterForRemoteNotificationsWithDeviceToken:(nonnull NSData *)token DEPRECATED_MSG_ATTRIBUTE("use didRegisterForRemoteNotificationsWithDeviceToken: instead.");
100
+
101
+ /**
102
+ Method for handling 'Push Actions'. Forward this call to Appoxee directly and call completionHandler(); if the returned value is NO, since Appoxee will not handle a complete custom action provided by the developer.
103
+ @brief Implementation of this method enables ‘Push Actions’. Forward this call to Appoxee directly and call completionHandler(); if the returned value is NO, since Appoxee will not handle a complete custom action provided by the developer.
104
+ @param identifier The identifier argument passed by the application delegate.
105
+ @param userInfo The userInfo argument passed by the application delegate.
106
+ @param completionHandler The completionHandler argument passed by the application delegate.
107
+ @return YES, if Appoxee handled the action, else returns NO. If the returned value is NO, you will need to call completionHandler(); after you finish handling the Push action.
108
+ */
109
+ - (BOOL)handleActionWithIdentifier:(nullable NSString *)identifier forRemoteNotification:(nonnull NSDictionary *)userInfo completionHandler:(void (^ _Nullable)())completionHandler DEPRECATED_MSG_ATTRIBUTE("use handleActionWithIdentifier:forRemoteNotification:completionHandler: instead.");
110
+
111
+ #pragma mark - Device API Legacy
112
+
113
+ /**
114
+ Disable and re-enable Push Notifications on Appoxee dashboard.
115
+ @brief Method will disable or re-enable Push Notification per device at Appoxee Dashboard.
116
+ @see disablePushNotifications:withCompletionHandler:
117
+ @param flag BOOL value indacating if should enable or disable.
118
+ */
119
+ - (void)optOutPush:(BOOL)flag DEPRECATED_MSG_ATTRIBUTE("use disablePushNotifications:withCompletionHandler: instead.");
120
+
121
+ /**
122
+ Get the current state of the push on Appoxee dashboard.
123
+ @brief Method to get the current state of the push status on Appoxee dashboard.
124
+ @return YES, if push is enabled, otherwise NO.
125
+ */
126
+ - (BOOL)isPushEnabled DEPRECATED_MSG_ATTRIBUTE("use isPushEnabled: instead.");
127
+
128
+ /**
129
+ Disable and re-enable Inbox.
130
+ @brief Method will disable or re-enable Inbox.
131
+ @param flag BOOL value indacating if should enable or disable sound.
132
+ */
133
+ - (void)optOutInbox:(BOOL)flag DEPRECATED_MSG_ATTRIBUTE("use disableInbox:withCompletionHandler: instead.");
134
+
135
+ /**
136
+ Get the current state of the Inbox on Appoxee dashboard.
137
+ @brief Method to get the current state of the Inbox status on Appoxee dashboard.
138
+ @return YES, if inbox is enabled, otherwise NO.
139
+ */
140
+ - (BOOL)isInboxEnabled DEPRECATED_MSG_ATTRIBUTE("use isInboxEnabled: instead.");
141
+
142
+ #pragma mark - Alias Legacy
143
+
144
+ /**
145
+ Set an alias to be identifies with a device.
146
+ @brief Method will synchronously set an alias to be identifies with a device.
147
+ @param alias An NSString object representing an alias.
148
+ @return YES on success, NO on failure.
149
+ */
150
+ - (BOOL)setDeviceAlias:(nullable NSString *)alias DEPRECATED_MSG_ATTRIBUTE("use setDeviceAlias:withCompletionHandler instead.");
151
+
152
+ /**
153
+ Remove an alias from a device.
154
+ @brief Method will synchronously remove an alias from a device.
155
+ @return YES on success, NO on failure.
156
+ */
157
+ - (BOOL)removeDeviceAlias DEPRECATED_MSG_ATTRIBUTE("use removeDeviceAliasWithCompletionHandler: instead.");
158
+
159
+ /**
160
+ Get an alias for a device.
161
+ @brief Method will synchronously get alias for a device.
162
+ @return NSString instance of the device Alias.
163
+ */
164
+ - (nullable NSString *)getDeviceAlias DEPRECATED_MSG_ATTRIBUTE("use getDeviceAliasWithCompletionHandler: instead.");
165
+
166
+ /**
167
+ Clear cached value of an alias.
168
+ @brief Method will clear cached value of an alias.
169
+ */
170
+ - (void)clearAliasCache DEPRECATED_MSG_ATTRIBUTE("use clearAliasCacheWithCompletionHandler: instead.");
171
+
172
+ #pragma mark - Device Tags Legacy
173
+
174
+ /**
175
+ Get the device tags from Appoxee's servers
176
+ @brief Method synchronously gets the device tags from Appoxee's servers.
177
+ @attention method is deprecated.
178
+ @return NSArray containing strings with device tags values.
179
+ */
180
+ - (nullable NSArray *)getDeviceTags DEPRECATED_MSG_ATTRIBUTE("use fetchDeviceTags: instead.");
181
+
182
+ /**
183
+ Get the applicatoin tags from Appoxee's servers
184
+ @brief Method synchronously gets the application tags from Appoxee's servers.
185
+ @attention method is deprecated.
186
+ @return NSArray containing strings with application tags values.
187
+ */
188
+ - (nullable NSArray *)getTagList DEPRECATED_MSG_ATTRIBUTE("use fetchApplicationTags: instead.");
189
+
190
+ /**
191
+ Add tags to the device and removes tags from device.
192
+ @brief Method adds and remove tags to / from the device, while syncing with Appoxee Servers.
193
+ @param tagsToAdd NSArray containing a list of NSString tags.
194
+ @param tagsToRemove NSArray containing a list of NSString tags.
195
+ @return YES on success, NO on faliure
196
+ */
197
+ - (BOOL)addTagsToDevice:(nullable NSArray *)tagsToAdd andRemove:(nullable NSArray *)tagsToRemove DEPRECATED_MSG_ATTRIBUTE("use addTagsToDevice:andRemove:withCompletionHandler: instead.");
198
+
199
+ /**
200
+ Add tags to the device.
201
+ @brief Method adds tags to the device, while syncing with Appoxee Servers.
202
+ @param tags NSArray containing a list of NSString tags.
203
+ @return YES on success, NO on faliure
204
+ */
205
+ - (BOOL)addTagsToDevice:(nullable NSArray *)tags DEPRECATED_MSG_ATTRIBUTE("use addTagsToDevice:withCompletionHandler: instead.");
206
+
207
+ /**
208
+ Remove tags from the device.
209
+ @brief Method remove tags from the device, while syncing with Appoxee Servers.
210
+ @param tags NSArray containing a list of NSString tags.
211
+ @return YES on success, NO on faliure
212
+ */
213
+ - (BOOL)removeTagsFromDevice:(nullable NSArray*)tags DEPRECATED_MSG_ATTRIBUTE("use removeTagsFromDevice:withCompletionHandler: instead.");
214
+
215
+ /**
216
+ Clear device tags cached on device.
217
+ @brief Method will clear device tags cache.
218
+ */
219
+ - (void)clearTagsCache DEPRECATED_MSG_ATTRIBUTE("use clearTagsCacheWithCompletionhandler: instead.");
220
+
221
+ #pragma mark - Custom Fields Legacy
222
+
223
+ /**
224
+ Set key-value data with a value of an NSDate to Appoxee Servers.
225
+ @brief Method sets a key-value pair with a value of NDSate to Appoxee Servers.
226
+ @param datesDict NSMutableDictionary with an NSDate as a value.
227
+ @return YES on success, NO on faliure.
228
+ */
229
+ - (BOOL)setDateFields:(nullable NSMutableDictionary *)datesDict DEPRECATED_MSG_ATTRIBUTE("use setDateField:withCompletionHandler: instead.");
230
+
231
+ /**
232
+ Set key-value data with a value of an NSNumber to Appoxee Servers.
233
+ @brief Method sets a key-value pair with a value of NSNumber to Appoxee Servers.
234
+ @param numericValuesDict NSMutableDictionary with an NSNumber as a value.
235
+ @return YES on success, NO on faliure.
236
+ */
237
+ - (BOOL)setNumericFields:(nullable NSMutableDictionary *)numericValuesDict DEPRECATED_MSG_ATTRIBUTE("use setNumericField:withCompletionHandler: instead.");
238
+
239
+ /**
240
+ Increment an exitsing numeric key-value data with value of an NSNumber to Appoxee Servers.
241
+ @brief Method increments an exitsing numeric key-value data with value of an NSNumber to Appoxee Servers.
242
+ @param numericValuesDict NSMutableDictionary with an NSNumber as a value.
243
+ @return YES on success, NO on faliure.
244
+ */
245
+ - (BOOL)incNumericFields:(nullable NSMutableDictionary *)numericValuesDict DEPRECATED_MSG_ATTRIBUTE("use incrementNumericField:withCompletionHandler: instead.");
246
+
247
+ /**
248
+ Set key-value data with a value of an NSString to Appoxee Servers.
249
+ @brief Method sets a key-value pair with a value of NSString to Appoxee Servers.
250
+ @param stringValuesDict NSMutableDictionary with an NSString as a value.
251
+ @return YES on success, NO on faliure.
252
+ */
253
+ - (BOOL)setStringFields:(nullable NSMutableDictionary *)stringValuesDict DEPRECATED_MSG_ATTRIBUTE("use setStringField:withCompletionHandler: instead.");
254
+
255
+ /**
256
+ Get a custom field by it's key.
257
+ @brief Method will synchronously get a custom field by it's key.
258
+ @param key NSString object with the value of a previously provided key, in a key-value pair.
259
+ @return NSString containing the value of the key.
260
+ */
261
+ - (nullable NSString *)getCustomFieldByKey:(nullable NSString *)key DEPRECATED_MSG_ATTRIBUTE("use fetchCustomFieldByKey:withCompletionHandler: instead.");
262
+
263
+ #pragma mark - Device Info Legacy
264
+
265
+ /**
266
+ Get the iDevice OS name.
267
+ @brief Method will get the iDevice OS name.
268
+ @return NSString representin OS name.
269
+ */
270
+ - (nullable NSString *)getDeviceOsName DEPRECATED_MSG_ATTRIBUTE("use deviceInformationwithCompletionHandler: instead.");
271
+
272
+ /**
273
+ Get the iDevice OS number.
274
+ @brief Method will get the iDevice OS number.
275
+ @return NSString representin OS number.
276
+ */
277
+ - (nullable NSString *)getDeviceOsNumber DEPRECATED_MSG_ATTRIBUTE("use deviceInformationwithCompletionHandler: instead.");
278
+
279
+ /**
280
+ Get the iDevice hardware type.
281
+ @brief Method will get the iDevice hardware type.
282
+ @return NSString representin hardware type.
283
+ */
284
+ - (nullable NSString *)getHardwareType DEPRECATED_MSG_ATTRIBUTE("use deviceInformationwithCompletionHandler: instead.");
285
+
286
+ /**
287
+ Get the iDevice country.
288
+ @brief Method will get the iDevice country.
289
+ @return NSString representin country.
290
+ */
291
+ - (nullable NSString *)getDeviceCountry DEPRECATED_MSG_ATTRIBUTE("use deviceInformationwithCompletionHandler: instead.");
292
+
293
+ /**
294
+ Get the iDevice application ID.
295
+ @brief Method will get the iDevice application ID.
296
+ @return NSString representin application ID.
297
+ */
298
+ - (nullable NSString *)getApplicationID DEPRECATED_MSG_ATTRIBUTE("use deviceInformationwithCompletionHandler: instead.");
299
+
300
+ /**
301
+ Get the iDevice application vendor identifier.
302
+ @brief Method will get the iDevice vendor identifier.
303
+ @return NSString representin vendor identifier.
304
+ */
305
+ - (nullable NSString *)getDeviceUniqueID DEPRECATED_MSG_ATTRIBUTE("use deviceInformationwithCompletionHandler: instead.");
306
+
307
+ #pragma mark - Inbox API Legacy
308
+
309
+ /**
310
+ Delete an Inbox Message.
311
+ @brief Method will delete an Inbox Message.
312
+ @attention original object was AppoxeeMessage, now object is APXRichMessage
313
+ @param appoxeeMessage An APXRichMessage instance.
314
+ */
315
+ - (void)deleteAppoxeeMessage:(nullable id)appoxeeMessage DEPRECATED_MSG_ATTRIBUTE("use deleteRichMessage:withHandler: instead.");
316
+
317
+ /**
318
+ Get Inbox Messages.
319
+ @brief Method will get Inbox Messages.
320
+ @return NSArray with APXRichMessage instances.
321
+ */
322
+ - (nullable NSArray *)getInboxMessages DEPRECATED_MSG_ATTRIBUTE("use getRichMessagesWithHandler: or refreshDataWithCompletionHandler: instead.");
323
+
324
+ #pragma mark - Other Legacy
325
+
326
+ /*
327
+ * All methods below are deprecated.
328
+ * Methods which return an instance, will always return nil.
329
+ * Methods which return a BOOL, will always return NO.
330
+ * Method which return an int, will always return 0.
331
+ */
332
+ - (void)disableFeedbackAndMoreApps:(BOOL)shouldDisable DEPRECATED_ATTRIBUTE;
333
+ - (nullable NSString *)getServerV3URL DEPRECATED_ATTRIBUTE;
334
+ - (nullable NSString *)getGateKeeperURL DEPRECATED_ATTRIBUTE;
335
+ - (nullable NSString *)getServerV2URL DEPRECATED_ATTRIBUTE;
336
+ - (nullable NSString *)getMoreAppsURL DEPRECATED_ATTRIBUTE;
337
+ - (nullable NSString *)getFeedbackURL DEPRECATED_ATTRIBUTE;
338
+ - (nullable NSString *)getDeviceDefURL DEPRECATED_ATTRIBUTE;
339
+ - (nullable NSString *)getDeviceAdsURL DEPRECATED_ATTRIBUTE;
340
+ - (nullable NSArray *)setAttributeWithDict:(nullable NSMutableDictionary *)param andKey:(nullable NSString*)keyParam DEPRECATED_ATTRIBUTE;
341
+ - (nullable NSString *)getAttribute:(nullable NSString *)param DEPRECATED_ATTRIBUTE;
342
+ - (void)configureAppoxeeForLocale:(nullable NSString *)theLocale DEPRECATED_ATTRIBUTE;
343
+ - (void)optOutQuietTime DEPRECATED_ATTRIBUTE;
344
+ - (void)SplashScreen DEPRECATED_ATTRIBUTE;
345
+ - (void)optOutBadge:(BOOL)flag DEPRECATED_ATTRIBUTE;
346
+ - (void)optOutSound:(BOOL)flag DEPRECATED_ATTRIBUTE;
347
+ - (UIRemoteNotificationType)getNotificationStatus DEPRECATED_ATTRIBUTE;
348
+ - (void)setQuietTime:(nullable NSString *)startTimeParam endTime:(nullable NSString *)endTimeParam DEPRECATED_ATTRIBUTE;
349
+ - (nullable NSString *) getSplashScreen DEPRECATED_ATTRIBUTE;
350
+ - (nullable NSString *) getPoweredByImageLink DEPRECATED_ATTRIBUTE;
351
+ - (nullable NSString *)getQuietTimeStart DEPRECATED_ATTRIBUTE;
352
+ - (nullable NSString *)getQuietTimeEnd DEPRECATED_ATTRIBUTE;
353
+ - (void)setSoundEnabled:(BOOL)enabled DEPRECATED_ATTRIBUTE;
354
+ - (void)setBadgeEnabled:(BOOL)enabled DEPRECATED_ATTRIBUTE;
355
+ - (BOOL)isCoppaShown DEPRECATED_ATTRIBUTE;
356
+ - (BOOL)isSoundEnabled DEPRECATED_ATTRIBUTE;
357
+ - (BOOL)isBadgeEnabled DEPRECATED_ATTRIBUTE;
358
+ - (int)getDeviceActivations DEPRECATED_ATTRIBUTE;
359
+ - (nullable NSDecimalNumber *) getInAppPayment DEPRECATED_ATTRIBUTE;
360
+ - (int)getNumProductsPurchased DEPRECATED_ATTRIBUTE;
361
+ - (BOOL)increaseInAppPayment:(nullable NSDecimalNumber *)payment andNumPurchased:(nullable NSDecimalNumber *)numPurchased DEPRECATED_ATTRIBUTE;
362
+ - (BOOL)increaseNumProductPurchased:(nullable NSDecimalNumber *)payment DEPRECATED_ATTRIBUTE;
363
+ - (int)getInboxFlag DEPRECATED_ATTRIBUTE;
364
+ - (int)getCustomInboxFlag DEPRECATED_ATTRIBUTE;
365
+ - (int)getFeedbackFlag DEPRECATED_ATTRIBUTE;
366
+ - (int)getMoreAppsFlag DEPRECATED_ATTRIBUTE;
367
+ - (void)openAppoxeeMessage:(nullable id)appoxeeMessage DEPRECATED_ATTRIBUTE;
368
+ - (void)addBadgeToView:(nullable UIView *)badgeView badgeText:(nullable NSString *)badgeText badgeLocation:(CGPoint)badgeLocation DEPRECATED_ATTRIBUTE;
369
+ - (void)addBadgeToView:(nullable UIView *)badgeView badgeText:(nullable NSString *)badgeText badgeLocation:(CGPoint)badgeLocation shouldFlashBadge:(BOOL)shouldFlashBadge DEPRECATED_ATTRIBUTE;
370
+ - (void)addBadgeToView:(nullable UIView *)badgeView badgeText:(nullable NSString *)badgeText badgeLocation:(CGPoint)badgeLocation shouldFlashBadge:(BOOL)shouldFlashBadge withFontSize:(float)fontSize DEPRECATED_ATTRIBUTE;
371
+ - (void)show DEPRECATED_ATTRIBUTE;
372
+ - (BOOL)showMoreAppsViewController DEPRECATED_ATTRIBUTE;
373
+ - (BOOL)showFeedbackViewController DEPRECATED_ATTRIBUTE;
374
+ - (void)showMoreAppsOnInbox:(BOOL)show DEPRECATED_ATTRIBUTE;
375
+ - (void)showFeedbackOnInbox:(BOOL)show DEPRECATED_ATTRIBUTE;
376
+ - (nullable UIViewController *)getAppoxeeViewController DEPRECATED_ATTRIBUTE;
377
+ - (nullable UIViewController *)getAppoxeeMoreAppsViewController DEPRECATED_ATTRIBUTE;
378
+ - (nullable UIViewController *)getAppoxeeFeedbackViewController DEPRECATED_ATTRIBUTE;
379
+ - (void)recalculateUnreadMessagesBadge DEPRECATED_ATTRIBUTE;
380
+ - (void)setUsingCustomInbox:(BOOL)isCustom DEPRECATED_ATTRIBUTE;
381
+ - (BOOL)getUsingCustomInboxFlag DEPRECATED_ATTRIBUTE;
382
+ - (void)showCustomInbox:(BOOL)show DEPRECATED_ATTRIBUTE;
383
+ + (void)automaticallyClearNotifications:(BOOL)automatically DEPRECATED_ATTRIBUTE;
384
+ + (BOOL)isNotificationsClearedAutomatically DEPRECATED_ATTRIBUTE;
385
+
386
+ @end
@@ -0,0 +1,12 @@
1
+ //
2
+ // AppoxeeSDK.h
3
+ // AppoxeeSDK
4
+ //
5
+ // Created by Raz Elkayam on 12/25/14.
6
+ // Copyright (c) 2014 Appoxee. All rights reserved.
7
+ //
8
+
9
+ #import "Appoxee.h"
10
+ #import "AppoxeeManager.h"
11
+ #import "APXInterfaceService.h"
12
+
@@ -66,6 +66,14 @@ RCT_EXPORT_METHOD(setAlias:(NSString *) alias) {
66
66
  }];
67
67
  }
68
68
 
69
+ RCT_EXPORT_METHOD(setAliasWithResend:(NSString *) alias withResendAttributes:(BOOL) resendAttributes) {
70
+ [[Appoxee shared] setDeviceAlias:alias withResendAttributes:resendAttributes withCompletionHandler:^(NSError * _Nullable appoxeeError, id _Nullable data) {
71
+ if (appoxeeError != nil) {
72
+ NSLog(@"%@", appoxeeError.debugDescription);
73
+ }
74
+ }];
75
+ }
76
+
69
77
  RCT_EXPORT_METHOD(setToken:(NSString *) token) {
70
78
  [[Appoxee shared] didRegisterForRemoteNotificationsWithDeviceToken:[[NSData alloc] initWithBase64EncodedString:token options:NSUTF8StringEncoding]];
71
79
  }
@@ -123,6 +131,23 @@ RCT_EXPORT_METHOD(incrementNumericKey: (NSString *) key value: (NSNumber *) numb
123
131
  }
124
132
  }];
125
133
  }
134
+
135
+ RCT_EXPORT_METHOD(setAttributes: (NSDictionary *)attributes) {
136
+ [[Appoxee shared] setCustomAttributtes:attributes withCompletionHandler:^(NSError * _Nullable appoxeeError, id _Nullable data) {
137
+ if (appoxeeError) {
138
+ NSLog(@"%@", appoxeeError.debugDescription);
139
+ }
140
+ }];
141
+ }
142
+
143
+ RCT_EXPORT_METHOD(getAttributes: (NSArray *)attributes and:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) {
144
+ [[Appoxee shared] getCustomAttributes:attributes withCompletionHandler:^(NSError * _Nullable appoxeeError, id _Nullable data) {
145
+ if (appoxeeError) {
146
+ NSLog(@"%@", appoxeeError.debugDescription);
147
+ }
148
+ resolve((NSDictionary*)data[@"get"]);
149
+ }];
150
+ }
126
151
 
127
152
  RCT_EXPORT_METHOD(setAttribute: (NSString *)key value: (NSString *) value) {
128
153
  [[Appoxee shared] setStringValue:value forKey:key withCompletionHandler:^(NSError * _Nullable appoxeeError, id _Nullable data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-mapp-plugin",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Mapp SDK for React Native.",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -15,14 +15,14 @@
15
15
  "license": "MIT",
16
16
  "peerDependencies": {
17
17
  "react": "^18.0.0 || ^19.0.0",
18
- "react-native": ">=0.72.0 <0.80.0"
18
+ "react-native": ">=0.80"
19
19
  },
20
20
  "devDependencies": {
21
- "@react-native-community/cli": "^18.0.0",
22
- "@react-native/codegen": "^0.79.3",
23
- "jest": "^28.1.3",
24
- "react": "19.0.0",
25
- "react-native": "0.79.3",
21
+ "@react-native-community/cli": "^19.1.0",
22
+ "@react-native/codegen": "^0.81.1",
23
+ "jest": "^30.2.0",
24
+ "react": "19.1.0",
25
+ "react-native": "0.81.4",
26
26
  "react-native-gradle-plugin": "^0.71.19"
27
27
  },
28
28
  "scripts": {