react-native-appsflyer
Advanced tools
Comparing version 6.1.20 to 6.1.30
# Versions | ||
## 6.1.30 | ||
- Android SDK 6.1.3 | ||
- iOS SDK 6.1.3 | ||
- setHost API | ||
- addPushNotificationDeepLinkPath API | ||
## 6.1.20 | ||
@@ -3,0 +9,0 @@ - Unified deep linking |
@@ -32,2 +32,4 @@ # API | ||
- [sendPushNotificationData](#sendPushNotificationData) | ||
- [setHost](#setHost) | ||
- [addPushNotificationDeepLinkPath](#addPushNotificationDeepLinkPath) | ||
@@ -821,1 +823,38 @@ --- | ||
``` | ||
--- | ||
##### <a id="setHost"> **`setHost(hostPrefix, hostName, successC)`** | ||
Set a custom host | ||
| parameter | type | description | | ||
| ----------|----------|------------------| | ||
| hostPrefix | string | the host prefix | | ||
| hostName | string | the host name | | ||
| successC | function | success callback | | ||
*Example:* | ||
```javascript | ||
appsFlyer.setHost('foo', 'bar.appsflyer.com', res => console.log(res)); | ||
``` | ||
--- | ||
##### <a id="addPushNotificationDeepLinkPath"> **`addPushNotificationDeepLinkPath(path, successC, errorC)`** | ||
The addPushNotificationDeepLinkPath method provides app owners with a flexible interface for configuring how deep links are extracted from push notification payloads. | ||
for more information: https://support.appsflyer.com/hc/en-us/articles/207032126-Android-SDK-integration-for-developers#core-apis-65-configure-push-notification-deep-link-resolution <br> | ||
βImportantβ `addPushNotificationDeepLinkPath` must be called before calling `initSDK` | ||
| parameter | type | description | | ||
| ----------|----------|------------------| | ||
| path | strings array | the desired path separated into an array | | ||
| successC | function | success callback | | ||
| errorC | function | error callback | | ||
*Example:* | ||
```javascript | ||
appsFlyer.addPushNotificationDeepLinkPath(["deeply", "nested", "deep_link"], res => console.log(res), error => console.log(error)); | ||
``` |
@@ -51,7 +51,7 @@ # React Native Appsflyer Plugin Guides | ||
3. Unified deep linking - Unified deep linking sends new and existing users to a specific in-app activity as soon as the app is opened.<br> | ||
For more info please check out the [OneLinkβ’ Deep Linking Guide](https://support.appsflyer.com/hc/en-us/articles/208874366-OneLink-Deep-Linking-Guide#Intro). | ||
For more info please check out the [OneLinkβ’ Deep Linking Guide](https://dev.appsflyer.com/docs/initial-setup-for-deep-linking-and-deferred-deep-linking). | ||
### <a id="deferred-deep-linking"> 1. Deferred Deep Linking (Get Conversion Data) | ||
Check out the deferred deep linking guide from the AppFlyer knowledge base [here](https://support.appsflyer.com/hc/en-us/articles/207032096-Accessing-AppsFlyer-Attribution-Conversion-Data-from-the-SDK-Deferred-Deeplinking-#Introduction). | ||
Check out the deferred deep linking guide from the AppFlyer knowledge base [here](https://dev.appsflyer.com/docs/deferred-deep-linking-new-users-to-specific-content-inside-your-app). | ||
@@ -92,3 +92,3 @@ Code Sample to handle the conversion data: | ||
When a deep link is clicked on the device the AppsFlyer SDK will return the link in the [onAppOpenAttribution](https://support.appsflyer.com/hc/en-us/articles/208874366-OneLink-Deep-Linking-Guide#deep-linking-data-the-onappopenattribution-method-) method. | ||
When a deep link is clicked on the device the AppsFlyer SDK will return the link in the [onAppOpenAttribution](https://dev.appsflyer.com/docs/deep-linking-existing-app-users-to-specific-content) method. | ||
@@ -95,0 +95,0 @@ ```javascript |
@@ -91,2 +91,4 @@ /** | ||
sendPushNotificationData(pushPayload: object): void | ||
setHost(hostPrefix: string, hostName: string, success: SuccessCB): void | ||
addPushNotificationDeepLinkPath(path: string[], successC: SuccessCB, errorC: ErrorCB): void | ||
@@ -93,0 +95,0 @@ /** |
20
index.js
@@ -530,3 +530,23 @@ import {NativeEventEmitter, NativeModules} from "react-native"; | ||
/** | ||
* Set a custom host | ||
* @param hostPrefix | ||
* @param hostName | ||
* @param successC: success callback | ||
*/ | ||
appsFlyer.setHost = (hostPrefix, hostName, successC) => { | ||
RNAppsFlyer.setHost(hostPrefix, hostName, successC); | ||
} | ||
/** | ||
* The addPushNotificationDeepLinkPath method provides app owners with a flexible interface for configuring how deep links are extracted from push notification payloads. | ||
* for more information: https://support.appsflyer.com/hc/en-us/articles/207032126-Android-SDK-integration-for-developers#core-apis-65-configure-push-notification-deep-link-resolution | ||
* @param path: an array of string that represents the path | ||
* @param successC: success callback | ||
* @param errorC: error callback | ||
*/ | ||
appsFlyer.addPushNotificationDeepLinkPath = (path, successC, errorC) => { | ||
RNAppsFlyer.addPushNotificationDeepLinkPath(path, successC, errorC); | ||
} | ||
function AFParseJSONException(_message, _data) { | ||
@@ -533,0 +553,0 @@ this.message = _message; |
{ | ||
"name": "react-native-appsflyer", | ||
"version": "6.1.20", | ||
"version": "6.1.30", | ||
"description": "React Native Appsflyer plugin", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,3 +17,3 @@ require 'json' | ||
s.dependency 'React' | ||
s.dependency 'AppsFlyerFramework', '6.1.1' | ||
s.dependency 'AppsFlyerFramework', '6.1.3' | ||
end |
@@ -17,4 +17,4 @@ require 'json' | ||
s.dependency 'React' | ||
s.dependency 'AppsFlyerFramework/Strict', '6.1.1' | ||
s.dependency 'AppsFlyerFramework/Strict', '6.1.3' | ||
s.xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) AFSDK_NO_IDFA=1' } | ||
end |
@@ -25,4 +25,4 @@ | ||
- iOS AppsFlyerSDK **v6.1.1** | ||
- Android AppsFlyerSDK **v6.1.0** | ||
- iOS AppsFlyerSDK **v6.1.3** | ||
- Android AppsFlyerSDK **v6.1.3** | ||
@@ -41,2 +41,3 @@ ## <a id="v6-breaking-changes"> β v6 Breaking Changes | ||
| setDeviceTrackingDisabled | anonymizeUser | | ||
| AppsFlyerTracker | AppsFlyerLib | | ||
@@ -43,0 +44,0 @@ And removed the following ones: |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1572
155
1501091
126