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.
- package/.idea/Mapp-Engage-ReactNative-Plugin.iml +9 -0
- package/.idea/caches/deviceStreaming.xml +787 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/CHANGELOG.md +21 -0
- package/Mapp.js +36 -7
- package/RNMappPlugin.podspec +2 -2
- package/android/.settings/org.eclipse.buildship.core.prefs +1 -1
- package/android/build.gradle +10 -10
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/settings.gradle +3 -3
- package/android/src/main/AndroidManifest.xml +3 -3
- package/android/src/main/java/com/reactlibrary/RNMappPluginModule.java +68 -1
- package/build/generated/ios/MappEngagePluginSpec/MappEngagePluginSpec-generated.mm +16 -0
- package/build/generated/ios/MappEngagePluginSpec/MappEngagePluginSpec.h +38 -0
- package/build/generated/ios/MappEngagePluginSpecJSI-generated.cpp +17 -0
- package/build/generated/ios/MappEngagePluginSpecJSI.h +19 -0
- package/build/generated/ios/RCTAppDependencyProvider.h +25 -0
- package/build/generated/ios/RCTAppDependencyProvider.mm +35 -0
- package/build/generated/ios/RCTModuleProviders.h +16 -0
- package/build/generated/ios/RCTModuleProviders.mm +51 -0
- package/build/generated/ios/RCTModulesConformingToProtocolsProvider.h +18 -0
- package/build/generated/ios/RCTModulesConformingToProtocolsProvider.mm +54 -0
- package/build/generated/ios/RCTThirdPartyComponentsProvider.h +16 -0
- package/build/generated/ios/RCTThirdPartyComponentsProvider.mm +30 -0
- package/build/generated/ios/ReactAppDependencyProvider.podspec +34 -0
- package/ios/Frameworks/AppoxeeLocationServices.xcframework/Info.plist +48 -0
- package/ios/Frameworks/AppoxeeLocationServices.xcframework/ios-arm64/libAppoxeeLocationServices.a +0 -0
- package/ios/Frameworks/AppoxeeLocationServices.xcframework/ios-arm64_x86_64-simulator/Headers/AppoxeeLocationManager.h +122 -0
- package/ios/Frameworks/AppoxeeLocationServices.xcframework/ios-arm64_x86_64-simulator/Headers/AppoxeeLocationServices.h +11 -0
- package/ios/Frameworks/AppoxeeLocationServices.xcframework/ios-arm64_x86_64-simulator/libAppoxeeLocationServices.a +0 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/Info.plist +48 -0
- package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXClientDevice.h +1 -0
- package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXPushNotificationActionButtonAction.h +3 -2
- package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/Appoxee.h +39 -2
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64/libAppoxeeSDK.a +0 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXClientDevice.h +27 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXInterfaceService.h +49 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXPushNotification.h +92 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXPushNotificationAction.h +20 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXPushNotificationActionButton.h +19 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXPushNotificationActionButtonAction.h +36 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXRichMessage.h +58 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/Appoxee.h +877 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/AppoxeeManager.h +386 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/AppoxeeSDK.h +12 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/libAppoxeeSDK.a +0 -0
- package/ios/RNMappPluginModule.m +25 -0
- package/package.json +7 -7
- package/ios/Frameworks/AppoxeeLocationServices.framework/Versions/A/AppoxeeLocationServices +0 -0
- package/ios/Frameworks/AppoxeeSDK.framework/Versions/A/AppoxeeSDK +0 -0
- /package/ios/Frameworks/{AppoxeeLocationServices.framework/Versions/A → AppoxeeLocationServices.xcframework/ios-arm64}/Headers/AppoxeeLocationManager.h +0 -0
- /package/ios/Frameworks/{AppoxeeLocationServices.framework/Versions/A → AppoxeeLocationServices.xcframework/ios-arm64}/Headers/AppoxeeLocationServices.h +0 -0
- /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXInterfaceService.h +0 -0
- /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXPushNotification.h +0 -0
- /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXPushNotificationAction.h +0 -0
- /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXPushNotificationActionButton.h +0 -0
- /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/APXRichMessage.h +0 -0
- /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/AppoxeeManager.h +0 -0
- /package/ios/Frameworks/{AppoxeeSDK.framework/Versions/A → AppoxeeSDK.xcframework/ios-arm64}/Headers/AppoxeeSDK.h +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
#
|
|
3
|
+
# This source code is licensed under the MIT license found in the
|
|
4
|
+
# LICENSE file in the root directory of this source tree.
|
|
5
|
+
|
|
6
|
+
version = "0.79.3"
|
|
7
|
+
source = { :git => 'https://github.com/facebook/react-native.git' }
|
|
8
|
+
if version == '1000.0.0'
|
|
9
|
+
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
|
10
|
+
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
|
11
|
+
else
|
|
12
|
+
source[:tag] = "v#{version}"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
Pod::Spec.new do |s|
|
|
16
|
+
s.name = "ReactAppDependencyProvider"
|
|
17
|
+
s.version = version
|
|
18
|
+
s.summary = "The third party dependency provider for the app"
|
|
19
|
+
s.homepage = "https://reactnative.dev/"
|
|
20
|
+
s.documentation_url = "https://reactnative.dev/"
|
|
21
|
+
s.license = "MIT"
|
|
22
|
+
s.author = "Meta Platforms, Inc. and its affiliates"
|
|
23
|
+
s.platforms = min_supported_versions
|
|
24
|
+
s.source = source
|
|
25
|
+
s.source_files = "**/RCTAppDependencyProvider.{h,mm}"
|
|
26
|
+
|
|
27
|
+
# This guard prevent to install the dependencies when we run `pod install` in the old architecture.
|
|
28
|
+
s.pod_target_xcconfig = {
|
|
29
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
|
|
30
|
+
"DEFINES_MODULE" => "YES"
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
s.dependency "ReactCodegen"
|
|
34
|
+
end
|
|
@@ -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>libAppoxeeLocationServices.a</string>
|
|
10
|
+
<key>HeadersPath</key>
|
|
11
|
+
<string>Headers</string>
|
|
12
|
+
<key>LibraryIdentifier</key>
|
|
13
|
+
<string>ios-arm64</string>
|
|
14
|
+
<key>LibraryPath</key>
|
|
15
|
+
<string>libAppoxeeLocationServices.a</string>
|
|
16
|
+
<key>SupportedArchitectures</key>
|
|
17
|
+
<array>
|
|
18
|
+
<string>arm64</string>
|
|
19
|
+
</array>
|
|
20
|
+
<key>SupportedPlatform</key>
|
|
21
|
+
<string>ios</string>
|
|
22
|
+
</dict>
|
|
23
|
+
<dict>
|
|
24
|
+
<key>BinaryPath</key>
|
|
25
|
+
<string>libAppoxeeLocationServices.a</string>
|
|
26
|
+
<key>HeadersPath</key>
|
|
27
|
+
<string>Headers</string>
|
|
28
|
+
<key>LibraryIdentifier</key>
|
|
29
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
30
|
+
<key>LibraryPath</key>
|
|
31
|
+
<string>libAppoxeeLocationServices.a</string>
|
|
32
|
+
<key>SupportedArchitectures</key>
|
|
33
|
+
<array>
|
|
34
|
+
<string>arm64</string>
|
|
35
|
+
<string>x86_64</string>
|
|
36
|
+
</array>
|
|
37
|
+
<key>SupportedPlatform</key>
|
|
38
|
+
<string>ios</string>
|
|
39
|
+
<key>SupportedPlatformVariant</key>
|
|
40
|
+
<string>simulator</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>
|
package/ios/Frameworks/AppoxeeLocationServices.xcframework/ios-arm64/libAppoxeeLocationServices.a
ADDED
|
Binary file
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
//
|
|
2
|
+
// AppoxeeLocationManager.h
|
|
3
|
+
// AppoxeeLocationServices
|
|
4
|
+
//
|
|
5
|
+
// Created by Raz Elkayam on 10/30/14.
|
|
6
|
+
// Copyright (c) 2014 Appoxee. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <CoreLocation/CoreLocation.h>
|
|
11
|
+
|
|
12
|
+
@class AppoxeeLocationManager;
|
|
13
|
+
|
|
14
|
+
@protocol AppoxeeLocationManagerDelegate <NSObject>
|
|
15
|
+
|
|
16
|
+
@optional
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
Notifies on faliure.
|
|
20
|
+
@brief Method for notifiyng when a failure happend.
|
|
21
|
+
*/
|
|
22
|
+
- (void)locationManager:(nonnull AppoxeeLocationManager *)manager didFailWithError:(nullable NSError *)error;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
Notifies when a device entered into a geographic region.
|
|
26
|
+
@brief Method for notifiyng when geographic region is entered by the device.
|
|
27
|
+
<pre><code>
|
|
28
|
+
- (void)locationManager:(AppoxeeLocationManager *)manager didEnterGeoRegion:(CLCircularRegion *)geoRegion
|
|
29
|
+
{
|
|
30
|
+
// Entered a region.
|
|
31
|
+
// Notice that the .identifier @property of the CLCircularRegion instance is the location ID as created By Teradata.
|
|
32
|
+
|
|
33
|
+
NSLog(@"Entered location id of: %@, of coordinates: %.2f | %.2f, with radius: %.2f", geoRegion.identifier, geoRegion.center.latitude, geoRegion.center.longitude, geoRegion.radius);
|
|
34
|
+
}
|
|
35
|
+
</code></pre>
|
|
36
|
+
*/
|
|
37
|
+
- (void)locationManager:(nonnull AppoxeeLocationManager *)manager didEnterGeoRegion:(nonnull CLCircularRegion *)geoRegion;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
Notifies when a device exits from a geographic region.
|
|
41
|
+
@brief Method for notifiyng when geographic region is exited by the device.
|
|
42
|
+
<pre><code>
|
|
43
|
+
- (void)locationManager:(AppoxeeLocationManager *)manager didExitGeoRegion:(CLCircularRegion *)geoRegion
|
|
44
|
+
{
|
|
45
|
+
// Exited a region.
|
|
46
|
+
// Notice that the .identifier @property of the CLCircularRegion instance is the location ID as created By Teradata.
|
|
47
|
+
|
|
48
|
+
NSLog(@"Entered location id: %@, of coordinates: %.2f | %.2f, with radius: %.2f", geoRegion.identifier, geoRegion.center.latitude, geoRegion.center.longitude, geoRegion.radius);
|
|
49
|
+
}
|
|
50
|
+
</code></pre>
|
|
51
|
+
*/
|
|
52
|
+
- (void)locationManager:(nonnull AppoxeeLocationManager *)manager didExitGeoRegion:(nonnull CLCircularRegion *)geoRegion;
|
|
53
|
+
|
|
54
|
+
@end
|
|
55
|
+
|
|
56
|
+
/*!
|
|
57
|
+
* Appoxee Location manager is the main interface API for developers who implements Appoxee Location Services.
|
|
58
|
+
*/
|
|
59
|
+
@interface AppoxeeLocationManager : NSObject
|
|
60
|
+
|
|
61
|
+
/*!
|
|
62
|
+
* between 1 - 5, where 1 prints all logs and 5 prints critical logs.
|
|
63
|
+
*/
|
|
64
|
+
@property (nonatomic) NSInteger logLevel;
|
|
65
|
+
@property (nonatomic) NSArray<CLLocation*>* _Nullable regions;
|
|
66
|
+
|
|
67
|
+
/*!
|
|
68
|
+
* The delegate for recieving AppoxeeLocationManagerDelegate events.
|
|
69
|
+
*/
|
|
70
|
+
@property (nonatomic, weak, nullable) id <AppoxeeLocationManagerDelegate> delegate;
|
|
71
|
+
|
|
72
|
+
/*!
|
|
73
|
+
* The last known location of the user.
|
|
74
|
+
*/
|
|
75
|
+
@property (nonatomic, strong, nullable) CLLocation *lastLocation;
|
|
76
|
+
@property (nonatomic, nonnull, readonly) NSString *locationServicesVersion;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
AppoxeeLocationManager instance
|
|
80
|
+
@brief Method for getting a singleton instance of AppoxeeLocationManager
|
|
81
|
+
<pre><code>
|
|
82
|
+
AppoxeeLocationManager *locationManager = [AppoxeeLocationManager shared];
|
|
83
|
+
</code></pre>
|
|
84
|
+
@return AppoxeeLocationManager an Instance Type of AppoxeeLocationManager.
|
|
85
|
+
*/
|
|
86
|
+
+ (nullable instancetype)shared;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
Start monitoring for geo fences. Method will set a UIApplicationBackgroundFetchIntervalMinimum if application supports background fetch.
|
|
90
|
+
@brief Method for starting monitoring for geo fences. Method will set a UIApplicationBackgroundFetchIntervalMinimum if application supports background fetch.
|
|
91
|
+
@attention Authorization status must be kCLAuthorizationStatusAuthorizedAlways or kCLAuthorizationStatusAuthorized, else method will not execute.
|
|
92
|
+
<pre><code>
|
|
93
|
+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
94
|
+
{
|
|
95
|
+
[[Appoxee shared] engageWithLaunchOptions:launchOptions andDelegate:self andSDKID:@"sdk.id" andAppSecret:@"app.secret"];
|
|
96
|
+
// Set an observer, and enable location monitoring when AppoxeeSDK is ready. This can also be achived when listening to @"APX_Ready" notification with NSNotificationCenter
|
|
97
|
+
[[Appoxee shared] addObserver:self forKeyPath:@"isReady" options:(NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld) context:NULL];
|
|
98
|
+
|
|
99
|
+
return YES;
|
|
100
|
+
}
|
|
101
|
+
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
|
|
102
|
+
{
|
|
103
|
+
if ([keyPath isEqualToString:@"isReady"]) {
|
|
104
|
+
|
|
105
|
+
[[Appoxee shared] removeObserver:self forKeyPath:@"isReady"];
|
|
106
|
+
[[AppoxeeLocationManager shared] enableLocationMonitoring];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
</code></pre>
|
|
110
|
+
*/
|
|
111
|
+
- (void)enableLocationMonitoring;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
Stop monitoring for geo fences. Method will set a UIApplicationBackgroundFetchIntervalNever if application supports background fetch.
|
|
115
|
+
@brief Method for stoping monitoring for geo fences. Method will set a UIApplicationBackgroundFetchIntervalNever if application supports background fetch.
|
|
116
|
+
<pre><code>
|
|
117
|
+
[[AppoxeeLocationManager shared] disableLocationMonitoring];
|
|
118
|
+
</code></pre>
|
|
119
|
+
*/
|
|
120
|
+
- (void)disableLocationMonitoring;
|
|
121
|
+
|
|
122
|
+
@end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//
|
|
2
|
+
// AppoxeeLocationServices.h
|
|
3
|
+
// AppoxeeLocationServices
|
|
4
|
+
//
|
|
5
|
+
// Created by Raz Elkayam on 11/25/14.
|
|
6
|
+
// Copyright (c) 2014 Appoxee. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <UIKit/UIKit.h>
|
|
11
|
+
#import <AppoxeeLocationServices/AppoxeeLocationManager.h>
|
|
Binary file
|
|
@@ -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.
|
|
Binary file
|
package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/Headers/APXClientDevice.h
ADDED
|
@@ -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
|