react-native-mapp-plugin 1.3.2 → 1.3.5
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/CHANGELOG.md +36 -0
- package/RNMappPlugin.podspec +4 -3
- package/android/build.gradle +2 -2
- package/ios/Frameworks/AppoxeeInapp.xcframework/Info.plist +48 -0
- package/ios/Frameworks/{AppoxeeInapp.framework/Versions/A → AppoxeeInapp.xcframework/ios-arm64}/Headers/AppoxeeInapp.h +5 -4
- package/ios/Frameworks/AppoxeeInapp.xcframework/ios-arm64/libAppoxeeInapp.a +0 -0
- package/ios/Frameworks/AppoxeeInapp.xcframework/ios-arm64_x86_64-simulator/Headers/APXInBoxMessage.h +101 -0
- package/ios/Frameworks/AppoxeeInapp.xcframework/ios-arm64_x86_64-simulator/Headers/AppoxeeInapp.h +154 -0
- package/ios/Frameworks/AppoxeeInapp.xcframework/ios-arm64_x86_64-simulator/Headers/AppoxeeInappSDK.h +9 -0
- package/ios/Frameworks/AppoxeeInapp.xcframework/ios-arm64_x86_64-simulator/libAppoxeeInapp.a +0 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/Info.plist +5 -5
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64/libAppoxeeSDK.a +0 -0
- package/ios/Frameworks/AppoxeeSDK.xcframework/ios-arm64_x86_64-simulator/libAppoxeeSDK.a +0 -0
- package/ios/RNMappPlugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/RNMappPlugin.xcodeproj/project.xcworkspace/xcuserdata/stefan.stevanovic.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/RNMappPlugin.xcodeproj/xcuserdata/stefan.stevanovic.xcuserdatad/xcschemes/xcschememanagement.plist +14 -0
- package/package.json +1 -1
- package/react-native-mapp-plugin-1.3.4.tgz +0 -0
- package/.idea/Mapp-Engage-ReactNative-Plugin.iml +0 -9
- package/.idea/caches/deviceStreaming.xml +0 -787
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/build/generated/ios/MappEngagePluginSpec/MappEngagePluginSpec-generated.mm +0 -16
- package/build/generated/ios/MappEngagePluginSpec/MappEngagePluginSpec.h +0 -38
- package/build/generated/ios/MappEngagePluginSpecJSI-generated.cpp +0 -17
- package/build/generated/ios/MappEngagePluginSpecJSI.h +0 -19
- package/build/generated/ios/RCTAppDependencyProvider.h +0 -25
- package/build/generated/ios/RCTAppDependencyProvider.mm +0 -35
- package/build/generated/ios/RCTModuleProviders.h +0 -16
- package/build/generated/ios/RCTModuleProviders.mm +0 -51
- package/build/generated/ios/RCTModulesConformingToProtocolsProvider.h +0 -18
- package/build/generated/ios/RCTModulesConformingToProtocolsProvider.mm +0 -54
- package/build/generated/ios/RCTThirdPartyComponentsProvider.h +0 -16
- package/build/generated/ios/RCTThirdPartyComponentsProvider.mm +0 -30
- package/build/generated/ios/ReactAppDependencyProvider.podspec +0 -34
- package/ios/Frameworks/AppoxeeInapp.framework/Versions/A/AppoxeeInapp +0 -0
- /package/ios/Frameworks/{AppoxeeInapp.framework/Versions/A → AppoxeeInapp.xcframework/ios-arm64}/Headers/APXInBoxMessage.h +0 -0
- /package/ios/Frameworks/{AppoxeeInapp.framework/Versions/A → AppoxeeInapp.xcframework/ios-arm64}/Headers/AppoxeeInappSDK.h +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
## Version 1.3.5
|
|
2
|
+
|
|
3
|
+
***Bug Fixes***
|
|
4
|
+
|
|
5
|
+
-iOS: Fixed an issue where App Store links from Push messages could not be opened.
|
|
6
|
+
|
|
7
|
+
-iOS: Fixed a bug where calling setAlias with resendAttributes = true did not resend cached custom attributes as expected.
|
|
8
|
+
|
|
9
|
+
***Dependency Updates***
|
|
10
|
+
|
|
11
|
+
-Aligned with Mapp Engage iOS SDK 6.1.2 and Mapp Engage Inapp iOS SDK 6.0.9.
|
|
12
|
+
|
|
13
|
+
**Note:**
|
|
14
|
+
-This release ensures correct link handling from Push messages and restores expected behavior when resending cached attributes during alias updates on iOS. The update is fully backward compatible and recommended for all iOS integrations using alias functionality.
|
|
15
|
+
|
|
16
|
+
# Version 1.3.4
|
|
17
|
+
- Updated native Mapp SDK versions; for Android - 6.1.3; for iOS - 6.1.1;
|
|
18
|
+
**Bug Fixes**
|
|
19
|
+
- Android: Fixed an issue where notificationMode settings had no effect — setting the mode to BACKGROUND_ONLY or SILENT_ONLY previously displayed push messages even when the application was in the foreground.
|
|
20
|
+
- Android: Fixed a bug where the device’s cached state was not properly invalidated after logout, which caused certain SDK methods to malfunction.
|
|
21
|
+
- Android: Fixed an issue where device fingerprint information was not updated when changes occurred.
|
|
22
|
+
- iOS: Updated internal implementation to remove usage of deprecated iOS APIs.
|
|
23
|
+
- iOS: Links from Push and In-App messages continue to open and function as expected.
|
|
24
|
+
|
|
25
|
+
**Dependency Updates (Android)**
|
|
26
|
+
```
|
|
27
|
+
*com.google.code.gson:gson: 2.13.2
|
|
28
|
+
*com.google.dagger:dagger: 2.57.2
|
|
29
|
+
*com.google.firebase:firebase-bom: 34.4.0
|
|
30
|
+
*com.github.bumptech.glide:compiler: 5.0.5
|
|
31
|
+
*androidx.appcompat:appcompat: 1.7.1
|
|
32
|
+
*androidx.webkit:webkit: 1.14.0
|
|
33
|
+
*androidx.work:work-runtime: 2.10.5
|
|
34
|
+
*androidx.concurrent:concurrent-futures: 1.3.0
|
|
35
|
+
```
|
|
36
|
+
|
|
1
37
|
# Version 1.3.2
|
|
2
38
|
- Resolved an issue introduced in version 1.3.1 where changes to the setAlias function declaration caused compatibility problems. The function has been updated to ensure backward compatibility.
|
|
3
39
|
|
package/RNMappPlugin.podspec
CHANGED
|
@@ -18,14 +18,15 @@ Pod::Spec.new do |s|
|
|
|
18
18
|
s.source_files = "ios/**/*.{h,c,m,swift}"
|
|
19
19
|
#s.vendored_framework = "ios/Frameworks/AppoxeeSDK.xcframework", "ios/Frameworks/AppoxeeLocationServices.framework", "ios/Frameworks/AppoxeeInapp.framework"
|
|
20
20
|
#s.resources = "ios/Frameworks/AppoxeeSDKResources.bundle", "ios/Frameworks/AppoxeeInappResources.bundle"
|
|
21
|
-
|
|
21
|
+
#s.preserve_path = "ios/Frameworks/"
|
|
22
22
|
# s.public_header_files = "ios/Frameworks/AppoxeeSDK.framework/Headers/"
|
|
23
23
|
s.requires_arc = true
|
|
24
24
|
s.frameworks = "WebKit"
|
|
25
25
|
s.library = 'sqlite3'
|
|
26
26
|
s.dependency "React"
|
|
27
|
-
s.dependency
|
|
28
|
-
s.dependency "
|
|
27
|
+
s.dependency 'RCT-Folly'
|
|
28
|
+
s.dependency "MappSDK" , '~> 6.1.2'
|
|
29
|
+
s.dependency "MappSDKInapp" , '~> 6.0.9'
|
|
29
30
|
s.dependency "MappSDKGeotargeting", '~> 6.0.7'
|
|
30
31
|
|
|
31
32
|
end
|
package/android/build.gradle
CHANGED
|
@@ -27,12 +27,12 @@ dependencies {
|
|
|
27
27
|
implementation 'com.google.code.gson:gson:2.13.2'
|
|
28
28
|
implementation 'androidx.appcompat:appcompat:1.7.1'
|
|
29
29
|
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.9.4'
|
|
30
|
-
implementation platform('com.google.firebase:firebase-bom:34.
|
|
30
|
+
implementation platform('com.google.firebase:firebase-bom:34.5.0')
|
|
31
31
|
implementation('com.google.firebase:firebase-messaging')
|
|
32
32
|
api('com.google.android.gms:play-services-location:21.3.0')
|
|
33
33
|
implementation 'androidx.media:media:1.7.1'
|
|
34
34
|
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
|
|
35
|
-
implementation("com.mapp.sdk:mapp-android:6.1.
|
|
35
|
+
implementation("com.mapp.sdk:mapp-android:6.1.3")
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
react {
|
|
@@ -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>libAppoxeeInapp.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>libAppoxeeInapp.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>libAppoxeeInapp.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>libAppoxeeInapp.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>
|
|
@@ -15,7 +15,8 @@ typedef NS_ENUM(NSInteger, INAPPSERVER) {
|
|
|
15
15
|
eMC_US,
|
|
16
16
|
cROC,
|
|
17
17
|
tEST,
|
|
18
|
-
tEST55
|
|
18
|
+
tEST55,
|
|
19
|
+
tEST61
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
@class AppoxeeInapp;
|
|
@@ -79,7 +80,7 @@ typedef NS_ENUM(NSInteger, INAPPSERVER) {
|
|
|
79
80
|
/**
|
|
80
81
|
Appoxee Inapp instance
|
|
81
82
|
@brief Method for getting a singleton instance of AppoxeeInapp
|
|
82
|
-
|
|
83
|
+
<pre><code>
|
|
83
84
|
AppoxeeInapp *appoxeeInapp = [AppoxeeInapp shared];
|
|
84
85
|
</pre></code>
|
|
85
86
|
@return AppoxeeInapp an Instance Type of AppoxeeInapp.
|
|
@@ -102,7 +103,7 @@ typedef NS_ENUM(NSInteger, INAPPSERVER) {
|
|
|
102
103
|
Method for engaging with AppoxeeInapp SDK.
|
|
103
104
|
@brief Call this method to enable engagement with AppoxeeInapp SDK. You will typically call this method on application launch.
|
|
104
105
|
@attention Method is considered critical, and must be implemented.
|
|
105
|
-
|
|
106
|
+
<pre><code>
|
|
106
107
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
107
108
|
{
|
|
108
109
|
[[AppoxeeInapp shared] engageWithDelegate:self];
|
|
@@ -119,7 +120,7 @@ typedef NS_ENUM(NSInteger, INAPPSERVER) {
|
|
|
119
120
|
/**
|
|
120
121
|
Method for reporting an interactionable event, which may trigger a display of an Inapp message, provided by a Real Time Decisioning Engine.
|
|
121
122
|
@brief Call this method to report significant events, which may trigger a display of an Inapp banner message or a full screen Inapp message.
|
|
122
|
-
|
|
123
|
+
<pre><code>
|
|
123
124
|
- (void)userDidConfirmPaymentOfAmount:(nonnull NSNumber *)amount
|
|
124
125
|
{
|
|
125
126
|
[[AppoxeeInapp shared] reportInteractionEventWithName:@"payment" andAttributes:@{@"amount" : amount}];
|
package/ios/Frameworks/AppoxeeInapp.xcframework/ios-arm64_x86_64-simulator/Headers/APXInBoxMessage.h
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
//
|
|
2
|
+
// InBoxMessage.h
|
|
3
|
+
// AppoxeeInapp
|
|
4
|
+
//
|
|
5
|
+
// Created by Neelesh on 29/03/18.
|
|
6
|
+
// Copyright © 2018 Teradata. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <UIKit/UIKit.h>
|
|
11
|
+
#import <WebKit/WebKit.h>
|
|
12
|
+
|
|
13
|
+
@interface APXInBoxMessage : NSObject
|
|
14
|
+
|
|
15
|
+
/*!
|
|
16
|
+
* The template id of message
|
|
17
|
+
*/
|
|
18
|
+
@property (nonatomic, strong, readonly, nonnull) NSString * messageId;
|
|
19
|
+
|
|
20
|
+
/*!
|
|
21
|
+
* HTML content of the message received
|
|
22
|
+
*/
|
|
23
|
+
@property (nonatomic, strong, readonly, nullable) NSString * content;
|
|
24
|
+
|
|
25
|
+
/*!
|
|
26
|
+
* Subject of the message
|
|
27
|
+
*/
|
|
28
|
+
@property (nonatomic, strong, readonly, nullable) NSString * subject;
|
|
29
|
+
|
|
30
|
+
/*!
|
|
31
|
+
* Status of message (READ, UNREAD & DELETED)
|
|
32
|
+
*/
|
|
33
|
+
@property (nonatomic, strong, readonly, nullable) NSString * status;
|
|
34
|
+
|
|
35
|
+
/*!
|
|
36
|
+
* Summary of message
|
|
37
|
+
*/
|
|
38
|
+
@property (nonatomic, strong, readonly, nullable) NSString * summary;
|
|
39
|
+
|
|
40
|
+
/*!
|
|
41
|
+
* URL of the icon related to message
|
|
42
|
+
*/
|
|
43
|
+
@property (nonatomic, strong, readonly, nullable) NSString * iconUrl;
|
|
44
|
+
|
|
45
|
+
/*!
|
|
46
|
+
* Message sent time stamp UTC
|
|
47
|
+
*/
|
|
48
|
+
@property (nonatomic, strong, readonly, nullable) NSDate * sentDate;
|
|
49
|
+
|
|
50
|
+
/*!
|
|
51
|
+
* Message expiry time stamp UTC
|
|
52
|
+
*/
|
|
53
|
+
@property (nonatomic, strong, readonly, nullable) NSDate * expireDate;
|
|
54
|
+
|
|
55
|
+
/*!
|
|
56
|
+
* Extra parameters
|
|
57
|
+
*/
|
|
58
|
+
@property (nonatomic, strong, readonly, nullable) NSDictionary * extras;
|
|
59
|
+
|
|
60
|
+
/*!
|
|
61
|
+
* whole dictionary
|
|
62
|
+
*/
|
|
63
|
+
@property (nonatomic, strong, readonly, nullable) NSDictionary * allDict;
|
|
64
|
+
|
|
65
|
+
/*!
|
|
66
|
+
* Method used to create message from server response
|
|
67
|
+
*/
|
|
68
|
+
+ (nullable instancetype)messageFromKeyedValues:(nullable NSDictionary *)keyedValues withEventId:(NSString *_Nonnull)eventId;
|
|
69
|
+
|
|
70
|
+
/*!
|
|
71
|
+
Return whole dictionary to addopt cordova plugin
|
|
72
|
+
*/
|
|
73
|
+
- (NSDictionary *)getDictionary;
|
|
74
|
+
|
|
75
|
+
/*!
|
|
76
|
+
* Handles all actions based on the request received
|
|
77
|
+
*/
|
|
78
|
+
- (BOOL)handleAPXActionsForRequest:(NSURLRequest *_Nullable)request navigationType:(WKNavigationType)navigationType;
|
|
79
|
+
|
|
80
|
+
/*!
|
|
81
|
+
* Method used to change message status to read
|
|
82
|
+
*/
|
|
83
|
+
- (void)markAsRead;
|
|
84
|
+
|
|
85
|
+
/*!
|
|
86
|
+
* Method used to change message status to unread
|
|
87
|
+
*/
|
|
88
|
+
- (void)markAsUnread;
|
|
89
|
+
|
|
90
|
+
/*!
|
|
91
|
+
* Method used to create message status to delete
|
|
92
|
+
*/
|
|
93
|
+
- (void)markAsDeleted;
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
/*!
|
|
97
|
+
* Not to be used by developer. It is for internal mapping only
|
|
98
|
+
*/
|
|
99
|
+
- (NSString *_Nonnull)getMessageIdentifier;
|
|
100
|
+
|
|
101
|
+
@end
|
package/ios/Frameworks/AppoxeeInapp.xcframework/ios-arm64_x86_64-simulator/Headers/AppoxeeInapp.h
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
//
|
|
2
|
+
// AppoxeeInapp.h
|
|
3
|
+
// AppoxeeInapp
|
|
4
|
+
//
|
|
5
|
+
// Created by Raz Elkayam on 4/17/16.
|
|
6
|
+
// Copyright © 2016 Teradata. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import "APXInBoxMessage.h"
|
|
11
|
+
|
|
12
|
+
typedef NS_ENUM(NSInteger, INAPPSERVER) {
|
|
13
|
+
l3,
|
|
14
|
+
eMC,
|
|
15
|
+
eMC_US,
|
|
16
|
+
cROC,
|
|
17
|
+
tEST,
|
|
18
|
+
tEST55,
|
|
19
|
+
tEST61
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
@class AppoxeeInapp;
|
|
23
|
+
|
|
24
|
+
@protocol AppoxeeInappDelegate <NSObject>
|
|
25
|
+
|
|
26
|
+
@optional
|
|
27
|
+
/**
|
|
28
|
+
Delegate method for informing a received Inapp message.
|
|
29
|
+
@brief Method will be called when an Inapp message is receieved.
|
|
30
|
+
@param appoxeeInapp A singleton instance of AppoxeeInapp.
|
|
31
|
+
@param identifier NSNumber as an identifier for the specific message.
|
|
32
|
+
@param messageExtraData NSDictionary which may contain extra data assigned to the specific message.
|
|
33
|
+
*/
|
|
34
|
+
- (void)appoxeeInapp:(nonnull AppoxeeInapp *)appoxeeInapp didReceiveInappMessageWithIdentifier:(nonnull NSNumber *)identifier andMessageExtraData:(nullable NSDictionary <NSString *, id> *)messageExtraData;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
Delegate method for informing a received Inapp message.
|
|
38
|
+
@brief Method will be called when a button click event has deep link associated.
|
|
39
|
+
@param identifier NSNumber as an identifier for the specific message.
|
|
40
|
+
@param message NSString which may contain information on page to be loaded in application.
|
|
41
|
+
@param triggerEvent contains information which type of event has been triggered
|
|
42
|
+
*/
|
|
43
|
+
- (void)didReceiveDeepLinkWithIdentifier:(nonnull NSNumber *)identifier withMessageString:(nonnull NSString *)message andTriggerEvent:(nonnull NSString *)triggerEvent;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
Delegate method for informing a received Inapp message.
|
|
47
|
+
@brief Method will be called when a button click event has deep link associated.
|
|
48
|
+
@param identifier NSNumber as an identifier for the specific message.
|
|
49
|
+
@param message NSString which may contain information on page to be loaded in application.
|
|
50
|
+
*/
|
|
51
|
+
- (void)didReceiveCustomLinkWithIdentifier:(nonnull NSNumber *)identifier withMessageString:(nonnull NSString *)message;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
Delegate method for informing a received In Box message.
|
|
55
|
+
@param messages contains the list of in box messages as InBoxMessage objects.
|
|
56
|
+
*/
|
|
57
|
+
- (void)didReceiveInBoxMessages:(NSArray *_Nullable)messages;
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
- (void)inAppCallFailedWithResponse:(NSString *_Nullable)response andError:(NSError *_Nullable)error;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
Delegate method for informing a received In Box message.
|
|
64
|
+
@param messages contains the list of in box messages as InBoxMessage objects.
|
|
65
|
+
*/
|
|
66
|
+
- (void)didReceiveInBoxMessage:(APXInBoxMessage *_Nullable)message;
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
@end
|
|
70
|
+
|
|
71
|
+
@interface AppoxeeInapp : NSObject
|
|
72
|
+
|
|
73
|
+
/*!
|
|
74
|
+
* The Appoxee Inapp delegate.
|
|
75
|
+
*/
|
|
76
|
+
@property (nonatomic, weak, nullable) id <AppoxeeInappDelegate> delegate;
|
|
77
|
+
@property (nonatomic, weak, nullable) UIImage* closeButtonImage;
|
|
78
|
+
@property (nonatomic, readwrite) enum INAPPSERVER server;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
Appoxee Inapp instance
|
|
82
|
+
@brief Method for getting a singleton instance of AppoxeeInapp
|
|
83
|
+
<pre><code>
|
|
84
|
+
AppoxeeInapp *appoxeeInapp = [AppoxeeInapp shared];
|
|
85
|
+
</pre></code>
|
|
86
|
+
@return AppoxeeInapp an Instance Type of AppoxeeInapp.
|
|
87
|
+
*/
|
|
88
|
+
+ (nullable instancetype)shared;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
Appoxee Inapp version
|
|
92
|
+
@brief Method for getting the SDK version
|
|
93
|
+
@code
|
|
94
|
+
NSString *version = [AppoxeeInapp inappVersion];
|
|
95
|
+
</pre></code>
|
|
96
|
+
@return NSString representing the SDK version.
|
|
97
|
+
*/
|
|
98
|
+
+ (nonnull NSString *)inappVersion;
|
|
99
|
+
|
|
100
|
+
- (enum INAPPSERVER)getServer;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
Method for engaging with AppoxeeInapp SDK.
|
|
104
|
+
@brief Call this method to enable engagement with AppoxeeInapp SDK. You will typically call this method on application launch.
|
|
105
|
+
@attention Method is considered critical, and must be implemented.
|
|
106
|
+
<pre><code>
|
|
107
|
+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
108
|
+
{
|
|
109
|
+
[[AppoxeeInapp shared] engageWithDelegate:self];
|
|
110
|
+
|
|
111
|
+
return YES;
|
|
112
|
+
}
|
|
113
|
+
</pre></code>
|
|
114
|
+
@param delegate id which conforms to AppoxeeInappDelegate protocol.
|
|
115
|
+
*/
|
|
116
|
+
- (void)engageWithDelegate:(nullable id <AppoxeeInappDelegate>)delegate with:(enum INAPPSERVER) server;
|
|
117
|
+
|
|
118
|
+
- (void)engageWithDelegate:(nullable id <AppoxeeInappDelegate>)delegate andCloseImage:(nullable UIImage*)closeImage with:(enum INAPPSERVER) server;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
Method for reporting an interactionable event, which may trigger a display of an Inapp message, provided by a Real Time Decisioning Engine.
|
|
122
|
+
@brief Call this method to report significant events, which may trigger a display of an Inapp banner message or a full screen Inapp message.
|
|
123
|
+
<pre><code>
|
|
124
|
+
- (void)userDidConfirmPaymentOfAmount:(nonnull NSNumber *)amount
|
|
125
|
+
{
|
|
126
|
+
[[AppoxeeInapp shared] reportInteractionEventWithName:@"payment" andAttributes:@{@"amount" : amount}];
|
|
127
|
+
}
|
|
128
|
+
</pre></code>
|
|
129
|
+
@param name NSString which describes the event name. No spaces, numbers, or symboles are allowed. Preferebly, use camelCase.
|
|
130
|
+
@param attributes NSDictionary which contains Plist objects with any additional data.
|
|
131
|
+
*/
|
|
132
|
+
- (void)reportInteractionEventWithName:(nonnull NSString *)name andAttributes:(nullable NSDictionary <NSString *, NSObject <NSCoding> *> *)attributes;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
Method for reporting an interactionable event, which may trigger a fetch of all inbox messages, provided by a Real Time Decisioning Engine.
|
|
136
|
+
@brief Call this method to all inbox messages.
|
|
137
|
+
This method sends response of fetched messages in delegate method calls.
|
|
138
|
+
- (void)didReceiveInBoxMessages:(NSArray *_Nullable)messages
|
|
139
|
+
*/
|
|
140
|
+
- (void)fetchAPXInBoxMessages;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
Method for load next message in queue
|
|
144
|
+
@brief Call this method to all inbox messages.
|
|
145
|
+
This method sends response of fetched messages in delegate method calls.
|
|
146
|
+
- (void)didReceiveInBoxMessages:(NSArray *_Nullable)messages
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
- (void)fetchInBoxMessageWithMessageId:(NSString *_Nullable)messageId;
|
|
150
|
+
|
|
151
|
+
- (void)fireInAppEventWithAppId:(NSString *_Nullable)appId tenantId:(NSString *_Nullable)tenantId userId:(NSString *_Nullable)userId deviceId:(NSString *_Nullable)deviceId jamieUrl:(NSString *_Nullable)jamieUrl alias:(NSString *)alias andEventName:(NSString *_Nullable)eventName;
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
@end
|
|
Binary file
|
|
@@ -10,18 +10,15 @@
|
|
|
10
10
|
<key>HeadersPath</key>
|
|
11
11
|
<string>Headers</string>
|
|
12
12
|
<key>LibraryIdentifier</key>
|
|
13
|
-
<string>ios-
|
|
13
|
+
<string>ios-arm64</string>
|
|
14
14
|
<key>LibraryPath</key>
|
|
15
15
|
<string>libAppoxeeSDK.a</string>
|
|
16
16
|
<key>SupportedArchitectures</key>
|
|
17
17
|
<array>
|
|
18
18
|
<string>arm64</string>
|
|
19
|
-
<string>x86_64</string>
|
|
20
19
|
</array>
|
|
21
20
|
<key>SupportedPlatform</key>
|
|
22
21
|
<string>ios</string>
|
|
23
|
-
<key>SupportedPlatformVariant</key>
|
|
24
|
-
<string>simulator</string>
|
|
25
22
|
</dict>
|
|
26
23
|
<dict>
|
|
27
24
|
<key>BinaryPath</key>
|
|
@@ -29,15 +26,18 @@
|
|
|
29
26
|
<key>HeadersPath</key>
|
|
30
27
|
<string>Headers</string>
|
|
31
28
|
<key>LibraryIdentifier</key>
|
|
32
|
-
<string>ios-
|
|
29
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
33
30
|
<key>LibraryPath</key>
|
|
34
31
|
<string>libAppoxeeSDK.a</string>
|
|
35
32
|
<key>SupportedArchitectures</key>
|
|
36
33
|
<array>
|
|
37
34
|
<string>arm64</string>
|
|
35
|
+
<string>x86_64</string>
|
|
38
36
|
</array>
|
|
39
37
|
<key>SupportedPlatform</key>
|
|
40
38
|
<string>ios</string>
|
|
39
|
+
<key>SupportedPlatformVariant</key>
|
|
40
|
+
<string>simulator</string>
|
|
41
41
|
</dict>
|
|
42
42
|
</array>
|
|
43
43
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
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>SchemeUserState</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>RNMappPlugin.xcscheme_^#shared#^_</key>
|
|
8
|
+
<dict>
|
|
9
|
+
<key>orderHint</key>
|
|
10
|
+
<integer>0</integer>
|
|
11
|
+
</dict>
|
|
12
|
+
</dict>
|
|
13
|
+
</dict>
|
|
14
|
+
</plist>
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="JAVA_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
-
<exclude-output />
|
|
5
|
-
<content url="file://$MODULE_DIR$" />
|
|
6
|
-
<orderEntry type="inheritedJdk" />
|
|
7
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
-
</component>
|
|
9
|
-
</module>
|