cordova-plugin-appsflyer-sdk
Advanced tools
Comparing version 6.1.30 to 6.2.0
@@ -129,6 +129,8 @@ # Cordova Appsflyer Plugin Guides | ||
When a deeplink 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. | ||
In order to implement deeplink with AppsFlyer, you must call `registerOnAppOpenAttribution` **before** `initSdk`<br> | ||
For more information on deeplinks, please read [here](https://dev.appsflyer.com/docs/getting-started) | ||
```javascript | ||
@@ -162,2 +164,3 @@ window.plugins.appsFlyer.registerOnAppOpenAttribution(function(res) { | ||
#### URI Scheme | ||
Please follow the instructions [here](https://dev.appsflyer.com/docs/initial-setup-for-deep-linking-and-deferred-deep-linking#deciding-on-a-uri-scheme) <br> | ||
In your app’s manifest add the following intent-filter to your relevant activity: | ||
@@ -175,4 +178,17 @@ ```xml | ||
#### App Links | ||
For more on App Links check out the guide [here](https://support.appsflyer.com/hc/en-us/articles/115005314223-Deep-Linking-Users-with-Android-App-Links#what-are-android-app-links). | ||
Please follow the instructions [here](https://dev.appsflyer.com/docs/initial-setup-for-deep-linking-and-deferred-deep-linking#generating-a-sha256-fingerprint) <br> | ||
In your app’s manifest add the following intent-filter to your relevant activity: | ||
```xml | ||
<intent-filter android:autoVerify="true"> | ||
<action android:name="android.intent.action.VIEW" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
<category android:name="android.intent.category.BROWSABLE" /> | ||
<data | ||
android:host="onelink-basic-app.onelink.me" | ||
android:pathPrefix="/H5hv" | ||
android:scheme="https" /> | ||
</intent-filter> | ||
``` | ||
### <a id="ios-deeplink"> iOS Deeplink Setup | ||
@@ -182,3 +198,3 @@ | ||
For more on URI-schemes check out hte guid [here](https://support.appsflyer.com/hc/en-us/articles/208874366-OneLink-deep-linking-guide#setups-uri-scheme-for-ios-8-and-below) | ||
For more on URI-schemes check out the guide [here](https://dev.appsflyer.com/docs/initial-setup-2#deciding-on-a-uri-scheme) | ||
@@ -198,5 +214,37 @@ Add the following lines to your code to be able to track deeplinks with AppsFlyer attribution data: | ||
``` | ||
Now you will get deep link information in the onAppOpenAttribution callback | ||
#### If you are using Ionic+Capacitor or Ionic+Cordova:<br> | ||
For plugin version **6.2.0** and up you need to add this to `didFinishLaunchingWithOptions`: | ||
``` | ||
if (_AppsFlyerdelegate == nil) { | ||
_AppsFlyerdelegate = [[AppsFlyerPlugin alloc] init]; | ||
} | ||
[[AppsFlyerLib shared] setDelegate:_AppsFlyerdelegate]; | ||
``` | ||
And `#import "AppsFlyerPlugin.h"` to `AppDelegate.m` | ||
For plugin version **6.1.30** and less, add `#import "AppsFlyerLib.h"` to `AppDelegate.m` | ||
In both cases, you need to add this code before the `@end` tag:<br> | ||
``` | ||
// Deep linking | ||
// Open URI-scheme for iOS 9 and above | ||
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *) options { | ||
[[AppsFlyerLib shared] handleOpenUrl:url options:options]; | ||
return YES; | ||
} | ||
// Open URI-scheme for iOS 8 and below | ||
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString*)sourceApplication annotation:(id)annotation { | ||
[[AppsFlyerLib shared] handleOpenURL:url sourceApplication:sourceApplication withAnnotation:annotation]; | ||
return YES; | ||
} | ||
// Open Universal Links | ||
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler { | ||
[[AppsFlyerLib shared] continueUserActivity:userActivity restorationHandler:restorationHandler]; | ||
return YES; | ||
} | ||
``` | ||
### Universal Links | ||
@@ -224,10 +272,2 @@ | ||
##### **Note**: Our plugin uses method swizzeling for | ||
` - (BOOL)application:(UIApplication *)application | ||
continueUserActivity:(NSUserActivity *)userActivity | ||
restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler; ` | ||
Now you will get deep link information in the onAppOpenAttribution callback | ||
## <a id="uninstall"> Uninstall Measurement | ||
@@ -234,0 +274,0 @@ |
# Release Notes | ||
### 6.2.0 | ||
Release date **January 17, 2021** | ||
Release type: Major / **Minor** / Hotfix | ||
**Overview and Highlights:** | ||
- fix onAppOnAttribution behavior on Android and iOS. PLEASE read [Here](https://github.com/AppsFlyerSDK/appsflyer-cordova-plugin/blob/dev/RD-54921/fix-OAOA-behavior/docs/Guides.md#-ios-deeplink-setup) | ||
### 6.1.30 | ||
@@ -3,0 +11,0 @@ Release date **January 11, 2021** |
{ | ||
"name": "cordova-plugin-appsflyer-sdk", | ||
"version": "6.1.30", | ||
"version": "6.2.0", | ||
"description": "Cordova AppsFlyer SDK Plugin", | ||
@@ -5,0 +5,0 @@ "cordova": { |
# Release Notes | ||
### 6.2.0 | ||
Release date **January 17, 2021** | ||
Release type: Major / **Minor** / Hotfix | ||
**Overview and Highlights:** | ||
- fix onAppOnAttribution behavior on Android and iOS. PLEASE read [Here](https://github.com/AppsFlyerSDK/appsflyer-cordova-plugin/blob/dev/RD-54921/fix-OAOA-behavior/docs/Guides.md#-ios-deeplink-setup) | ||
### 6.1.30 | ||
@@ -3,0 +11,0 @@ Release date **January 11, 2021** |
@@ -42,4 +42,2 @@ var exec = require('cordova/exec'), | ||
document.addEventListener('resume', this.onResume.bind(this), false); | ||
callbackMap.convSuc = successCB; | ||
@@ -64,12 +62,2 @@ callbackMap.convErr = errorCB; | ||
AppsFlyer.prototype.onResume = function () { | ||
if (callbackMap.convSuc) { | ||
exec(callbackMap.convSuc, callbackMap.convErr, 'AppsFlyerPlugin', 'resumeSDK', []); | ||
} | ||
if (callbackMap.attrSuc) { | ||
exec(callbackMap.attrSuc, callbackMap.attrErr, 'AppsFlyerPlugin', 'registerOnAppOpenAttribution', []); | ||
} | ||
}; | ||
/** | ||
@@ -76,0 +64,0 @@ * currencyId: ISO 4217 Currency Codes |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
265019
770