react-native-mapp-plugin 1.2.1 → 1.3.1

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 (71) 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/.vscode/settings.json +2 -1
  7. package/CHANGELOG.md +9 -0
  8. package/Helper.md +23 -0
  9. package/Mapp.js +26 -0
  10. package/RNMappPlugin.podspec +2 -2
  11. package/__package.json +2 -2
  12. package/android/.project +1 -1
  13. package/android/.settings/org.eclipse.buildship.core.prefs +1 -1
  14. package/android/build.gradle +26 -55
  15. package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  16. package/android/gradle.properties +36 -8
  17. package/android/settings.gradle +24 -1
  18. package/android/src/main/AndroidManifest.xml +5 -6
  19. package/android/src/main/java/com/reactlibrary/MessageService.java +16 -10
  20. package/android/src/main/java/com/reactlibrary/RNMappPluginModule.java +91 -12
  21. package/android/src/main/java/com/reactlibrary/RNMappPluginPackage.java +36 -19
  22. package/build/generated/ios/MappEngagePluginSpec/MappEngagePluginSpec-generated.mm +16 -0
  23. package/build/generated/ios/MappEngagePluginSpec/MappEngagePluginSpec.h +38 -0
  24. package/build/generated/ios/MappEngagePluginSpecJSI-generated.cpp +17 -0
  25. package/build/generated/ios/MappEngagePluginSpecJSI.h +19 -0
  26. package/build/generated/ios/RCTAppDependencyProvider.h +25 -0
  27. package/build/generated/ios/RCTAppDependencyProvider.mm +35 -0
  28. package/build/generated/ios/RCTModuleProviders.h +16 -0
  29. package/build/generated/ios/RCTModuleProviders.mm +51 -0
  30. package/build/generated/ios/RCTModulesConformingToProtocolsProvider.h +18 -0
  31. package/build/generated/ios/RCTModulesConformingToProtocolsProvider.mm +54 -0
  32. package/build/generated/ios/RCTThirdPartyComponentsProvider.h +16 -0
  33. package/build/generated/ios/RCTThirdPartyComponentsProvider.mm +30 -0
  34. package/build/generated/ios/ReactAppDependencyProvider.podspec +34 -0
  35. package/clean.sh +34 -0
  36. package/ios/Frameworks/AppoxeeLocationServices.xcframework/Info.plist +48 -0
  37. package/ios/Frameworks/AppoxeeLocationServices.xcframework/ios-arm64/libAppoxeeLocationServices.a +0 -0
  38. package/ios/Frameworks/AppoxeeLocationServices.xcframework/ios-arm64_x86_64-simulator/Headers/AppoxeeLocationManager.h +122 -0
  39. package/ios/Frameworks/AppoxeeLocationServices.xcframework/ios-arm64_x86_64-simulator/Headers/AppoxeeLocationServices.h +11 -0
  40. package/ios/Frameworks/AppoxeeLocationServices.xcframework/ios-arm64_x86_64-simulator/libAppoxeeLocationServices.a +0 -0
  41. package/ios/Frameworks/AppoxeeSDK.xcframework/Info.plist +48 -0
  42. package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXClientDevice.h +1 -0
  43. package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXPushNotificationActionButtonAction.h +3 -2
  44. package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/Appoxee.h +39 -2
  45. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64/libAppoxeeSDK.a +0 -0
  46. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXClientDevice.h +27 -0
  47. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXInterfaceService.h +49 -0
  48. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXPushNotification.h +92 -0
  49. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXPushNotificationAction.h +20 -0
  50. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXPushNotificationActionButton.h +19 -0
  51. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXPushNotificationActionButtonAction.h +36 -0
  52. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXRichMessage.h +58 -0
  53. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/Appoxee.h +877 -0
  54. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/AppoxeeManager.h +386 -0
  55. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/AppoxeeSDK.h +12 -0
  56. package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/libAppoxeeSDK.a +0 -0
  57. package/ios/RNMappPluginModule.m +33 -0
  58. package/package.json +13 -6
  59. package/react-native.config.js +7 -0
  60. package/specs/MappEngagePluginSpec.js +8 -0
  61. package/ios/Frameworks/AppoxeeLocationServices.framework/Versions/A/AppoxeeLocationServices +0 -0
  62. package/ios/Frameworks/AppoxeeSDK.framework/Versions/A/AppoxeeSDK +0 -0
  63. /package/ios/Frameworks/{AppoxeeLocationServices.framework/Versions/A → AppoxeeLocationServices.xcframework/ios-arm64}/Headers/AppoxeeLocationManager.h +0 -0
  64. /package/ios/Frameworks/{AppoxeeLocationServices.framework/Versions/A → AppoxeeLocationServices.xcframework/ios-arm64}/Headers/AppoxeeLocationServices.h +0 -0
  65. /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXInterfaceService.h +0 -0
  66. /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXPushNotification.h +0 -0
  67. /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXPushNotificationAction.h +0 -0
  68. /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXPushNotificationActionButton.h +0 -0
  69. /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXRichMessage.h +0 -0
  70. /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/AppoxeeManager.h +0 -0
  71. /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/AppoxeeSDK.h +0 -0
@@ -0,0 +1,48 @@
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>AvailableLibraries</key>
6
+ <array>
7
+ <dict>
8
+ <key>BinaryPath</key>
9
+ <string>libAppoxeeSDK.a</string>
10
+ <key>HeadersPath</key>
11
+ <string>Headers</string>
12
+ <key>LibraryIdentifier</key>
13
+ <string>ios-arm64_x86_64-simulator</string>
14
+ <key>LibraryPath</key>
15
+ <string>libAppoxeeSDK.a</string>
16
+ <key>SupportedArchitectures</key>
17
+ <array>
18
+ <string>arm64</string>
19
+ <string>x86_64</string>
20
+ </array>
21
+ <key>SupportedPlatform</key>
22
+ <string>ios</string>
23
+ <key>SupportedPlatformVariant</key>
24
+ <string>simulator</string>
25
+ </dict>
26
+ <dict>
27
+ <key>BinaryPath</key>
28
+ <string>libAppoxeeSDK.a</string>
29
+ <key>HeadersPath</key>
30
+ <string>Headers</string>
31
+ <key>LibraryIdentifier</key>
32
+ <string>ios-arm64</string>
33
+ <key>LibraryPath</key>
34
+ <string>libAppoxeeSDK.a</string>
35
+ <key>SupportedArchitectures</key>
36
+ <array>
37
+ <string>arm64</string>
38
+ </array>
39
+ <key>SupportedPlatform</key>
40
+ <string>ios</string>
41
+ </dict>
42
+ </array>
43
+ <key>CFBundlePackageType</key>
44
+ <string>XFWK</string>
45
+ <key>XCFrameworkFormatVersion</key>
46
+ <string>1.0</string>
47
+ </dict>
48
+ </plist>
@@ -20,6 +20,7 @@
20
20
  @property (nonatomic, strong) NSString *osVersion;
21
21
  @property (nonatomic, strong) NSString *hardwearType;
22
22
  @property (nonatomic, strong) NSString *applicationID;
23
+ @property (nonatomic, strong) NSString *sdkID;
23
24
  @property (nonatomic, getter = isInboxEnabled) BOOL inboxEnabled;
24
25
  @property (nonatomic, getter = isPushEnabled) BOOL pushEnabled;
25
26
 
@@ -15,7 +15,8 @@ typedef NS_ENUM(NSInteger, APXPushNotificationActionButtonTodo) {
15
15
  kAPXPushNotificationActionButtonActionTodoOpenURLScheme,
16
16
  kAPXPushNotificationActionButtonActionTodoOpenWebSite,
17
17
  kAPXPushNotificationActionButtonActionTodoOpenAppStore,
18
- kAPXPushNotificationActionButtonActionTodoOpenViewController
18
+ kAPXPushNotificationActionButtonActionTodoOpenViewController,
19
+ kAPXPushNotificationActionButtonActionTodoDialNumber
19
20
  };
20
21
 
21
22
  typedef NS_ENUM(NSInteger, APXPushNotificationActionButtonType) {
@@ -32,4 +33,4 @@ typedef NS_ENUM(NSInteger, APXPushNotificationActionButtonType) {
32
33
 
33
34
  - (id)initWithKeyedValues:(NSDictionary *)keyedValues;
34
35
 
35
- @end
36
+ @end
@@ -11,6 +11,7 @@
11
11
  #import "APXPushNotification.h"
12
12
  #import "APXRichMessage.h"
13
13
  #import "APXClientDevice.h"
14
+ #import <UserNotifications/UserNotifications.h>
14
15
 
15
16
  typedef NS_ENUM(NSInteger, SERVER) {
16
17
  L3,
@@ -18,7 +19,8 @@ typedef NS_ENUM(NSInteger, SERVER) {
18
19
  EMC_US,
19
20
  CROC,
20
21
  TEST,
21
- TEST55
22
+ TEST55,
23
+ TEST61
22
24
  };
23
25
 
24
26
  @class Appoxee;
@@ -69,7 +71,8 @@ typedef void(^AppoxeeCompletionHandler)(NSError * _Nullable appoxeeError, id _Nu
69
71
  * Set this property when ever needed, to change this behavior.
70
72
  * Default value is NO.
71
73
  */
72
- @property (nonatomic) BOOL showNotificationsOnForeground;
74
+ @property (nonatomic, readwrite) BOOL showNotificationsOnForeground;
75
+
73
76
 
74
77
  /*!
75
78
  * Indicates if the device is registered at Appoxee (but not yet ready for push notifications). You can listen to ‘APX_Ready’ NSNotification to catch this event, or use KVO to get notified when state turns to YES.
@@ -191,6 +194,17 @@ typedef void(^AppoxeeCompletionHandler)(NSError * _Nullable appoxeeError, id _Nu
191
194
  */
192
195
  - (void)engageWithLaunchOptions:(nullable NSDictionary *)launchOptions andDelegate:(nullable id<AppoxeeNotificationDelegate>)delegate andSDKID:(nonnull NSString *)sdkID with:(SERVER)server;
193
196
 
197
+ /**
198
+ Method for save userNotificationCategories to Appoxee SDK..
199
+ @brief Call this method to save userNotificationCategories to Appoxee SDK.
200
+ <pre><code>
201
+ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
202
+ {
203
+ Appoxee.shared()?.saveUserNotificationCategory([NSArray])
204
+ }
205
+ </code></pre>
206
+ */
207
+ - (void)saveUserNotificationCategories:(NSArray<UNNotificationCategory*> *_Nonnull) userCategories;
194
208
  /**
195
209
  Method for show register notificationa alert dialog into Appoxee SDK.
196
210
  @brief call this method when you want to show notification registration alert dialog.
@@ -476,6 +490,23 @@ typedef void(^AppoxeeCompletionHandler)(NSError * _Nullable appoxeeError, id _Nu
476
490
  @param handler Code Block to be executed when method completes with an NSError object and data as arguments.
477
491
  */
478
492
  - (void)setDeviceAlias:(nullable NSString *)alias withCompletionHandler:(nullable AppoxeeCompletionHandler)handler;
493
+ /**
494
+ Set an alias to be identifies with a device.
495
+ @brief Method sets an alias to identify a device.
496
+ <pre><code>
497
+ [[Appoxee shared] setDeviceAlias:@"Alias" withCompletionHandler:^(NSError *appoxeeError, id data) {
498
+
499
+ if (!appoxeeError) {
500
+
501
+ // Alias was set.
502
+ }
503
+ }];
504
+ </code></pre>
505
+ @param alias An NSString object representing an alias.
506
+ @param resendAttributes A BOOL value indicating if attributes should be resent to the server.
507
+ @param handler Code Block to be executed when method completes with an NSError object and data as arguments.
508
+ */
509
+ - (void)setDeviceAlias:(nullable NSString *)alias withResendAttributes: (BOOL) resendAttributes withCompletionHandler:(nullable AppoxeeCompletionHandler)handler;
479
510
 
480
511
  /**
481
512
  Remove an alias from a device.
@@ -660,6 +691,12 @@ typedef void(^AppoxeeCompletionHandler)(NSError * _Nullable appoxeeError, id _Nu
660
691
  */
661
692
  - (void)setDateValue:(nonnull NSDate *)date forKey:(nonnull NSString *)key withCompletionHandler:(nullable AppoxeeCompletionHandler)handler;
662
693
 
694
+ /// Set custom attributes to Mapp Servers.
695
+ /// @param attributes NSDictionary with custom attributes.
696
+ /// @param handler Code Block to be executed when method completes with an NSError object and data as arguments.
697
+ - (void)setCustomAttributtes:(nonnull NSDictionary *)attributes withCompletionHandler:(nullable AppoxeeCompletionHandler)handler;
698
+
699
+ - (void)getCustomAttributes:(nonnull NSArray *)attributes withCompletionHandler:(nullable AppoxeeCompletionHandler)handler;
663
700
  /**
664
701
  Set a custom number for a key to Appoxee Servers.
665
702
  @brief Method sets a custom value of NSNumber to Appoxee Servers.
@@ -0,0 +1,27 @@
1
+ //
2
+ // APXClientDevice.h
3
+ // AppoxeeSDK
4
+ //
5
+ // Created by Raz Elkayam on 5/20/15.
6
+ // Copyright (c) 2015 Appoxee. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ @interface APXClientDevice : NSObject
12
+
13
+ @property (nonatomic, strong) NSString *sdkVersion; // 4.1
14
+ @property (nonatomic, strong) NSString *locale; // i.e en
15
+ @property (nonatomic, strong) NSString *timeZone; // Asia / Jerusalem
16
+ @property (nonatomic, strong) NSString *pushToken;
17
+ @property (nonatomic, strong) NSString *udid;
18
+ @property (nonatomic, strong) NSString *udidHashed;
19
+ @property (nonatomic, strong) NSString *osName;
20
+ @property (nonatomic, strong) NSString *osVersion;
21
+ @property (nonatomic, strong) NSString *hardwearType;
22
+ @property (nonatomic, strong) NSString *applicationID;
23
+ @property (nonatomic, strong) NSString *sdkID;
24
+ @property (nonatomic, getter = isInboxEnabled) BOOL inboxEnabled;
25
+ @property (nonatomic, getter = isPushEnabled) BOOL pushEnabled;
26
+
27
+ @end
@@ -0,0 +1,49 @@
1
+ //
2
+ // APXInterfaceService.h
3
+ // AppoxeeSDK
4
+ //
5
+ // Created by Raz Elkayam on 7/12/15.
6
+ // Copyright (c) 2015 Appoxee. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import <UIKit/UIKit.h>
11
+ #import <CoreLocation/CoreLocation.h>
12
+
13
+ typedef NS_ENUM(NSInteger, APXInterfaceServiceOperation) {
14
+ kAPXInterfaceServiceOperationOne = 1,
15
+ kAPXInterfaceServiceOperationTwo,
16
+ kAPXInterfaceServiceOperationThree,
17
+ };
18
+
19
+ typedef void(^APXInterfaceServiceCompletionBlock)(NSError * _Nullable error, id _Nullable data);
20
+ typedef void(^APXInterfaceServiceFetchBlock)(UIBackgroundFetchResult fetchResult);
21
+
22
+ @class APXInterfaceService;
23
+
24
+ @protocol APXInterfaceServiceFetchDelegate <NSObject>
25
+
26
+ @required;
27
+ - (void)interfaceService:(nonnull APXInterfaceService *)service performFetchWithCompletionHandler:(nullable APXInterfaceServiceFetchBlock)fetchBlock withCompletionBlock:(nullable APXInterfaceServiceCompletionBlock)completionBlock;
28
+
29
+ @end
30
+
31
+ @interface APXInterfaceService : NSObject
32
+
33
+ + (nullable instancetype)shared;
34
+ @property (nonatomic, strong, readwrite, nullable) CLLocationManager * locationManager;
35
+
36
+ @property (nonatomic, weak, nullable) id <APXInterfaceServiceFetchDelegate> fetchDelegate;
37
+
38
+ @property (nonatomic, strong, readwrite, nullable) NSString *appID;
39
+ @property (nonatomic, readonly) BOOL isBackgroundFetchAvailable;
40
+ @property (nonatomic, readonly) BOOL isSilentPushAvailable;
41
+
42
+ - (void)performOperation:(APXInterfaceServiceOperation)operation withIdentifier:(nullable NSString *)identifier andData:(nullable NSDictionary *)args andCompletionBlock:(nullable APXInterfaceServiceCompletionBlock)completionBlock;
43
+
44
+ - (void)performFetchWithCompletionHandler:(nullable APXInterfaceServiceFetchBlock)fetchBlock andCompletionBlock:(nullable APXInterfaceServiceCompletionBlock)completionBlock;
45
+
46
+ + (NSTimeInterval)timestamp;
47
+ + (nonnull NSString *)stringTimestamp;
48
+
49
+ @end
@@ -0,0 +1,92 @@
1
+ //
2
+ // APXPushNotification.h
3
+ // AppoxeeSDK
4
+ //
5
+ // Created by Raz Elkayam on 3/8/15.
6
+ // Copyright (c) 2015 Appoxee. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import "APXPushNotificationAction.h"
11
+
12
+ @class UNNotificationResponse;
13
+ @class UNNotification;
14
+
15
+ @interface APXPushNotification : NSObject
16
+
17
+ /*!
18
+ * The alert property of a push notification payload.
19
+ */
20
+ @property (nonatomic, strong, readonly, nullable) NSString *alert;
21
+
22
+ /*!
23
+ * The title property of a push notification payload.
24
+ */
25
+ @property (nonatomic, strong, readonly, nullable) NSString *title;
26
+
27
+ /*!
28
+ * The subtitle property of a push notification payload.
29
+ */
30
+ @property (nonatomic, strong, readonly, nullable) NSString *subtitle;
31
+
32
+ /*!
33
+ * The body property of a push notification payload.
34
+ */
35
+ @property (nonatomic, strong, readonly, nullable) NSString *body;
36
+
37
+ /*!
38
+ * The badge property of a push notification payload.
39
+ */
40
+ @property (nonatomic, readonly) NSInteger badge;
41
+
42
+ /*!
43
+ * The notification Appoxee unique ID.
44
+ */
45
+ @property (nonatomic, readonly) NSInteger uniqueID;
46
+
47
+ /*!
48
+ * The extra fields associated with the push notification payload.
49
+ */
50
+ @property (nonatomic, strong, readonly, nullable) NSDictionary *extraFields;
51
+
52
+ /*!
53
+ * Indicating if push launched the application
54
+ */
55
+ @property (nonatomic, readonly) BOOL didLaunchApp;
56
+
57
+ /*!
58
+ * Indicating if push was sent with a rich payload.
59
+ */
60
+ @property (nonatomic, readonly) BOOL isRich;
61
+
62
+ /*!
63
+ * Indicating if the push is silent.
64
+ */
65
+ @property (nonatomic, readonly) BOOL isSilent;
66
+
67
+ /*!
68
+ * Indicating if the push should fetch content in the background.
69
+ */
70
+ @property (nonatomic, readonly) BOOL isTriggerUpdate;
71
+
72
+ /*!
73
+ * The associated actions with the push payload.
74
+ */
75
+ @property (nonatomic, strong, readonly, nullable) APXPushNotificationAction *pushAction;
76
+
77
+ /*!
78
+ * Class initializer with NSDictionary as push payload.
79
+ */
80
+ + (nullable instancetype)notificationWithKeyedValues:(nullable NSDictionary *)keyedValues;
81
+
82
+ /*!
83
+ * Class initializer with UNNotification as push payload.
84
+ */
85
+ + (nullable instancetype)notificationWithNotification:(nullable UNNotification *)notification;
86
+
87
+ /*!
88
+ * Class initializer with UNNotificationResponse as push payload.
89
+ */
90
+ + (nullable instancetype)notificationWithNotificationResponse:(nullable UNNotificationResponse *)notificationResponse;
91
+
92
+ @end
@@ -0,0 +1,20 @@
1
+ //
2
+ // APXPushNotificationAction.h
3
+ // AppoxeeSDK
4
+ //
5
+ // Created by Raz Elkayam on 3/18/15.
6
+ // Copyright (c) 2015 Appoxee. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import "APXPushNotificationActionButton.h"
11
+
12
+ @interface APXPushNotificationAction : NSObject
13
+
14
+ @property (nonatomic, getter = isAppoxeeCategory, readonly) BOOL appoxeeCategory;
15
+ @property (nonatomic, strong, readonly) NSString *categoryName;
16
+ @property (nonatomic, strong, readonly) NSArray <APXPushNotificationActionButton *> *actionButtons;
17
+
18
+ - (id)initWithKeyedValues:(NSDictionary *)keyedValues;
19
+
20
+ @end
@@ -0,0 +1,19 @@
1
+ //
2
+ // APXPushNotificationActionButton.h
3
+ // AppoxeeSDK
4
+ //
5
+ // Created by Raz Elkayam on 3/18/15.
6
+ // Copyright (c) 2015 Appoxee. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import "APXPushNotificationActionButtonAction.h"
11
+
12
+ @interface APXPushNotificationActionButton : NSObject
13
+
14
+ @property (nonatomic, strong) APXPushNotificationActionButtonAction *foregroundActionButtonAction; // of Type APXPushNotificationActionButtonAction
15
+ @property (nonatomic, strong) NSArray *backgroundActions; // of Type APXPushNotificationActionButtonAction
16
+
17
+ - (id)initWithKeyedValues:(NSDictionary *)keyedValues;
18
+
19
+ @end
@@ -0,0 +1,36 @@
1
+ //
2
+ // APXPushNotificationActionButtonAction.h
3
+ // AppoxeeSDK
4
+ //
5
+ // Created by Raz Elkayam on 3/18/15.
6
+ // Copyright (c) 2015 Appoxee. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ typedef NS_ENUM(NSInteger, APXPushNotificationActionButtonTodo) {
12
+ kAPXPushNotificationActionButtonActionTodoSet = 1,
13
+ kAPXPushNotificationActionButtonActionTodoRemove,
14
+ kAPXPushNotificationActionButtonActionTodoIncrement,
15
+ kAPXPushNotificationActionButtonActionTodoOpenURLScheme,
16
+ kAPXPushNotificationActionButtonActionTodoOpenWebSite,
17
+ kAPXPushNotificationActionButtonActionTodoOpenAppStore,
18
+ kAPXPushNotificationActionButtonActionTodoOpenViewController,
19
+ kAPXPushNotificationActionButtonActionTodoDialNumber
20
+ };
21
+
22
+ typedef NS_ENUM(NSInteger, APXPushNotificationActionButtonType) {
23
+ kAPXPushNotificationActionButtonActionTypeCustom = 1,
24
+ kAPXPushNotificationActionButtonActionTypeTag
25
+ };
26
+
27
+ @interface APXPushNotificationActionButtonAction : NSObject
28
+
29
+ @property (nonatomic, strong) NSString *name;
30
+ @property (nonatomic) APXPushNotificationActionButtonTodo todo;
31
+ @property (nonatomic) APXPushNotificationActionButtonType type;
32
+ @property (nonatomic, strong) NSString *value; // holds the value for any ToDo action
33
+
34
+ - (id)initWithKeyedValues:(NSDictionary *)keyedValues;
35
+
36
+ @end
@@ -0,0 +1,58 @@
1
+ //
2
+ // APXRichMessage.h
3
+ // AppoxeeSDK
4
+ //
5
+ // Created by Raz Elkayam on 3/19/15.
6
+ // Copyright (c) 2015 Appoxee. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ @interface APXRichMessage : NSObject <NSCoding>
12
+
13
+ /*!
14
+ * The unique identifier of the message.
15
+ */
16
+ @property (nonatomic, readonly) NSInteger uniqueID;
17
+
18
+ /*!
19
+ * The post date of the message, in UTC.
20
+ */
21
+ @property (nonatomic, readonly) NSDate *postDateUTC;
22
+
23
+ /*!
24
+ * The post date of the message, in device local time.
25
+ */
26
+ @property (nonatomic, strong, readonly) NSDate *postDate;
27
+
28
+ /*!
29
+ * The title of the message.
30
+ */
31
+ @property (nonatomic, strong, readonly) NSString *title;
32
+
33
+ /*!
34
+ * The content of the message.
35
+ */
36
+ @property (nonatomic, strong, readonly) NSString *content;
37
+
38
+ /*!
39
+ * Indicates if the message is read.
40
+ */
41
+ @property (nonatomic, readonly) BOOL isRead;
42
+
43
+ /*!
44
+ * The link of the message. Implicitly marks message as read.
45
+ */
46
+ @property (nonatomic, strong, readonly) NSString *messageLink;
47
+
48
+ /*!
49
+ * Init with keyed values.
50
+ */
51
+ - (id)initWithKeyedValues:(NSDictionary *)keyedValues;
52
+
53
+ /*!
54
+ * Init with keyed values and a 'read' indication.
55
+ */
56
+ - (id)initWithKeyedValues:(NSDictionary *)keyedValues andMarkAsRead:(BOOL)isRead;
57
+
58
+ @end