cordova-plugin-appsflyer-sdk
Advanced tools
Comparing version 6.0.52 to 6.0.53
@@ -38,2 +38,3 @@ # API | ||
| [`setDisableAdvertisingIdentifier`](#setDisableAdvertisingIdentifier) | `(boolean disableAdvertisingIdentifier, function success)` | **iOS** - set the SDK to load OR not to load adSupport.framework dynamically | | ||
| [`setOneLinkCustomDomains`](#setOneLinkCustomDomains) | `(domains, function success, function error)` | Set Onelink custom/branded domains | | ||
@@ -504,2 +505,21 @@ | ||
##### <a id="setOneLinkCustomDomains"> **`setOneLinkCustomDomains(domains, successC, errorC): void`** | ||
Set Onelink custom/branded domains<br> | ||
Use this API during the SDK Initialization to indicate branded domains. For more information [Learn here](https://support.appsflyer.com/hc/en-us/articles/360002329137-Implementing-Branded-Links) | ||
*Example:* | ||
```javascript | ||
let domains = ["promotion.greatapp.com", "click.greatapp.com", "deals.greatapp.com"]; | ||
window.plugins.appsFlyer.setOneLinkCustomDomains(domains, successC, errorC); | ||
``` | ||
| parameter | type | description | | ||
| ----------- |-----------------------------|--------------| | ||
| `domains` | `String array` | String array of branded domains | | ||
| `successC` | `function` | will trigger if the domains were sent successfully | | ||
| `errorC` | `function` | will trigger if an error occurred | | ||
--- | ||
### <a id="deep-linking-tracking"> Deep linking Tracking | ||
@@ -506,0 +526,0 @@ |
# Release Notes | ||
### 6.0.53 | ||
Release date **November 17, 2020** | ||
Release type: Major / Minor / **Hotfix** | ||
**Overview and Highlights:** | ||
- setOneLinkCustomDomains api | ||
### 6.0.52 | ||
@@ -3,0 +11,0 @@ Release date **October 26 2020** |
{ | ||
"name": "cordova-plugin-appsflyer-sdk", | ||
"version": "6.0.52", | ||
"version": "6.0.53", | ||
"description": "Cordova AppsFlyer SDK Plugin", | ||
@@ -5,0 +5,0 @@ "cordova": { |
# Release Notes | ||
### 6.0.53 | ||
Release date **November 17, 2020** | ||
Release type: Major / Minor / **Hotfix** | ||
**Overview and Highlights:** | ||
- setOneLinkCustomDomains api | ||
### 6.0.52 | ||
@@ -3,0 +11,0 @@ Release date **October 26 2020** |
var exec = require('cordova/exec'), | ||
argscheck = require('cordova/argscheck'), | ||
AppsFlyerError = require('./AppsFlyerError'); | ||
argscheck = require('cordova/argscheck'), | ||
AppsFlyerError = require('./AppsFlyerError'); | ||
@@ -8,258 +8,271 @@ var callbackMap = {}; | ||
if (!window.CustomEvent) { | ||
window.CustomEvent = function (type, config) { | ||
var e = document.createEvent('CustomEvent'); | ||
e.initCustomEvent(type, true, true, config.detail); | ||
return e; | ||
}; | ||
window.CustomEvent = function (type, config) { | ||
var e = document.createEvent('CustomEvent'); | ||
e.initCustomEvent(type, true, true, config.detail); | ||
return e; | ||
}; | ||
} | ||
(function (global) { | ||
var AppsFlyer = function () {}; | ||
var AppsFlyer = function () { | ||
}; | ||
/** | ||
* initialize the SDK. | ||
* args: SDK configuration | ||
* successCB: Success callback - called after successful SDK initialization. | ||
* errorCB: Error callback - called when error occurs during initialization. | ||
*/ | ||
AppsFlyer.prototype.initSdk = function (args, successCB, errorCB) { | ||
argscheck.checkArgs('O', 'AppsFlyer.initSdk', arguments); | ||
if (!args) { | ||
if (errorCB) { | ||
errorCB(AppsFlyerError.INVALID_ARGUMENT_ERROR); | ||
} | ||
} else { | ||
if (args.appId !== undefined && typeof args.appId != 'string') { | ||
if (errorCB) { | ||
errorCB(AppsFlyerError.APPID_NOT_VALID); | ||
} | ||
} else if (args.devKey !== undefined && typeof args.devKey != 'string') { | ||
if (errorCB) { | ||
errorCB(AppsFlyerError.DEVKEY_NOT_VALID); | ||
} | ||
} else { | ||
exec(successCB, errorCB, 'AppsFlyerPlugin', 'initSdk', [args]); | ||
/** | ||
* initialize the SDK. | ||
* args: SDK configuration | ||
* successCB: Success callback - called after successful SDK initialization. | ||
* errorCB: Error callback - called when error occurs during initialization. | ||
*/ | ||
AppsFlyer.prototype.initSdk = function (args, successCB, errorCB) { | ||
argscheck.checkArgs('O', 'AppsFlyer.initSdk', arguments); | ||
if (!args) { | ||
if (errorCB) { | ||
errorCB(AppsFlyerError.INVALID_ARGUMENT_ERROR); | ||
} | ||
} else { | ||
if (args.appId !== undefined && typeof args.appId != 'string') { | ||
if (errorCB) { | ||
errorCB(AppsFlyerError.APPID_NOT_VALID); | ||
} | ||
} else if (args.devKey !== undefined && typeof args.devKey != 'string') { | ||
if (errorCB) { | ||
errorCB(AppsFlyerError.DEVKEY_NOT_VALID); | ||
} | ||
} else { | ||
exec(successCB, errorCB, 'AppsFlyerPlugin', 'initSdk', [args]); | ||
document.addEventListener('resume', this.onResume.bind(this), false); | ||
document.addEventListener('resume', this.onResume.bind(this), false); | ||
callbackMap.convSuc = successCB; | ||
callbackMap.convErr = errorCB; | ||
} | ||
} | ||
}; | ||
callbackMap.convSuc = successCB; | ||
callbackMap.convErr = errorCB; | ||
} | ||
} | ||
}; | ||
/** | ||
* onAppOpenAttributionSuccess: Success callback - called after receiving data on App Open Attribution. | ||
* onAppOpenAttributionError: Error callback - called when error occurs. | ||
*/ | ||
AppsFlyer.prototype.registerOnAppOpenAttribution = function (onAppOpenAttributionSuccess, onAppOpenAttributionError) { | ||
argscheck.checkArgs('FF', 'AppsFlyer.registerOnAppOpenAttribution', arguments); | ||
/** | ||
* onAppOpenAttributionSuccess: Success callback - called after receiving data on App Open Attribution. | ||
* onAppOpenAttributionError: Error callback - called when error occurs. | ||
*/ | ||
AppsFlyer.prototype.registerOnAppOpenAttribution = function (onAppOpenAttributionSuccess, onAppOpenAttributionError) { | ||
argscheck.checkArgs('FF', 'AppsFlyer.registerOnAppOpenAttribution', arguments); | ||
callbackMap.attrSuc = onAppOpenAttributionSuccess; | ||
callbackMap.attrErr = onAppOpenAttributionError; | ||
callbackMap.attrSuc = onAppOpenAttributionSuccess; | ||
callbackMap.attrErr = onAppOpenAttributionError; | ||
exec(onAppOpenAttributionSuccess, onAppOpenAttributionError, 'AppsFlyerPlugin', 'registerOnAppOpenAttribution', []); | ||
}; | ||
exec(onAppOpenAttributionSuccess, onAppOpenAttributionError, 'AppsFlyerPlugin', 'registerOnAppOpenAttribution', []); | ||
}; | ||
AppsFlyer.prototype.onResume = function () { | ||
if (callbackMap.convSuc) { | ||
exec(callbackMap.convSuc, callbackMap.convErr, 'AppsFlyerPlugin', 'resumeSDK', []); | ||
} | ||
AppsFlyer.prototype.onResume = function () { | ||
if (callbackMap.convSuc) { | ||
exec(callbackMap.convSuc, callbackMap.convErr, 'AppsFlyerPlugin', 'resumeSDK', []); | ||
} | ||
if (callbackMap.attrSuc) { | ||
exec(callbackMap.attrSuc, callbackMap.attrErr, 'AppsFlyerPlugin', 'registerOnAppOpenAttribution', []); | ||
} | ||
}; | ||
if (callbackMap.attrSuc) { | ||
exec(callbackMap.attrSuc, callbackMap.attrErr, 'AppsFlyerPlugin', 'registerOnAppOpenAttribution', []); | ||
} | ||
}; | ||
/** | ||
* currencyId: ISO 4217 Currency Codes | ||
*/ | ||
AppsFlyer.prototype.setCurrencyCode = function (currencyId) { | ||
argscheck.checkArgs('S', 'AppsFlyer.setCurrencyCode', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'setCurrencyCode', [currencyId]); | ||
}; | ||
/** | ||
* currencyId: ISO 4217 Currency Codes | ||
*/ | ||
AppsFlyer.prototype.setCurrencyCode = function (currencyId) { | ||
argscheck.checkArgs('S', 'AppsFlyer.setCurrencyCode', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'setCurrencyCode', [currencyId]); | ||
}; | ||
/** | ||
* Setting your own Custom ID enables you to cross-reference your own unique ID with AppsFlyer’s user ID and the other devices’ IDs. | ||
*/ | ||
AppsFlyer.prototype.setAppUserId = function (customerUserId) { | ||
argscheck.checkArgs('S', 'AppsFlyer.setAppUserId', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'setAppUserId', [customerUserId]); | ||
}; | ||
/** | ||
* Setting your own Custom ID enables you to cross-reference your own unique ID with AppsFlyer’s user ID and the other devices’ IDs. | ||
*/ | ||
AppsFlyer.prototype.setAppUserId = function (customerUserId) { | ||
argscheck.checkArgs('S', 'AppsFlyer.setAppUserId', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'setAppUserId', [customerUserId]); | ||
}; | ||
/** | ||
* Get Appsflyer ID | ||
*/ | ||
AppsFlyer.prototype.getAppsFlyerUID = function (successCB) { | ||
argscheck.checkArgs('F', 'AppsFlyer.getAppsFlyerUID', arguments); | ||
exec( | ||
function (result) { | ||
successCB(result); | ||
}, | ||
null, | ||
'AppsFlyerPlugin', | ||
'getAppsFlyerUID', | ||
[] | ||
); | ||
}; | ||
/** | ||
* Get Appsflyer ID | ||
*/ | ||
AppsFlyer.prototype.getAppsFlyerUID = function (successCB) { | ||
argscheck.checkArgs('F', 'AppsFlyer.getAppsFlyerUID', arguments); | ||
exec( | ||
function (result) { | ||
successCB(result); | ||
}, | ||
null, | ||
'AppsFlyerPlugin', | ||
'getAppsFlyerUID', | ||
[] | ||
); | ||
}; | ||
/** | ||
* End User Opt-Out from AppsFlyer analytics (Anonymize user data). | ||
*/ | ||
AppsFlyer.prototype.anonymizeUser = function (isDisabled) { | ||
argscheck.checkArgs('*', 'AppsFlyer.anonymizeUser', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'anonymizeUser', [isDisabled]); | ||
}; | ||
/** | ||
* End User Opt-Out from AppsFlyer analytics (Anonymize user data). | ||
*/ | ||
AppsFlyer.prototype.anonymizeUser = function (isDisabled) { | ||
argscheck.checkArgs('*', 'AppsFlyer.anonymizeUser', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'anonymizeUser', [isDisabled]); | ||
}; | ||
/** | ||
* Shut down SDK | ||
*/ | ||
AppsFlyer.prototype.Stop = function (isStop) { | ||
argscheck.checkArgs('*', 'AppsFlyer.Stop', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'Stop', [isStop]); | ||
}; | ||
/** | ||
* Shut down SDK | ||
*/ | ||
AppsFlyer.prototype.Stop = function (isStop) { | ||
argscheck.checkArgs('*', 'AppsFlyer.Stop', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'Stop', [isStop]); | ||
}; | ||
/** | ||
* Log rich in-app events | ||
* eventName: custom event name, is presented in your dashboard. | ||
* eventValue: event details | ||
* successCB: Success callback - called after event sent successful . | ||
* errorCB: Error callback - called when error occurs. | ||
*/ | ||
AppsFlyer.prototype.logEvent = function (eventName, eventValue, successCB, errorCB) { | ||
argscheck.checkArgs('SO', 'AppsFlyer.logEvent', arguments); | ||
exec(successCB, errorCB, 'AppsFlyerPlugin', 'logEvent', [eventName, eventValue]); | ||
}; | ||
/** | ||
* Log rich in-app events | ||
* eventName: custom event name, is presented in your dashboard. | ||
* eventValue: event details | ||
* successCB: Success callback - called after event sent successful . | ||
* errorCB: Error callback - called when error occurs. | ||
*/ | ||
AppsFlyer.prototype.logEvent = function (eventName, eventValue, successCB, errorCB) { | ||
argscheck.checkArgs('SO', 'AppsFlyer.logEvent', arguments); | ||
exec(successCB, errorCB, 'AppsFlyerPlugin', 'logEvent', [eventName, eventValue]); | ||
}; | ||
/** | ||
* (Android) Allows to pass GCM/FCM Tokens that where collected by third party plugins to the AppsFlyer server. Can be used for Uninstall log. | ||
*/ | ||
AppsFlyer.prototype.updateServerUninstallToken = function (token) { | ||
argscheck.checkArgs('S', 'AppsFlyer.updateServerUninstallToken', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'updateServerUninstallToken', [token]); | ||
}; | ||
/** | ||
* (Android) Allows to pass GCM/FCM Tokens that where collected by third party plugins to the AppsFlyer server. Can be used for Uninstall log. | ||
*/ | ||
AppsFlyer.prototype.updateServerUninstallToken = function (token) { | ||
argscheck.checkArgs('S', 'AppsFlyer.updateServerUninstallToken', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'updateServerUninstallToken', [token]); | ||
}; | ||
/** | ||
* Set AppsFlyer’s OneLink ID | ||
* args: oneLinkID. | ||
*/ | ||
AppsFlyer.prototype.setAppInviteOneLinkID = function (args) { | ||
argscheck.checkArgs('S', 'AppsFlyer.setAppInviteOneLinkID', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'setAppInviteOneLinkID', [args]); | ||
}; | ||
/** | ||
* Set AppsFlyer’s OneLink ID | ||
* args: oneLinkID. | ||
*/ | ||
AppsFlyer.prototype.setAppInviteOneLinkID = function (args) { | ||
argscheck.checkArgs('S', 'AppsFlyer.setAppInviteOneLinkID', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'setAppInviteOneLinkID', [args]); | ||
}; | ||
/** | ||
* Allowing your existing users to invite their friends and contacts as new users to your app | ||
* args: Parameters for Invite link. | ||
* successCB: Success callback (generated link). | ||
* errorCB: Error callback. | ||
*/ | ||
AppsFlyer.prototype.generateInviteLink = function (args, successCB, errorCB) { | ||
argscheck.checkArgs('O', 'AppsFlyer.generateInviteLink', arguments); | ||
exec(successCB, errorCB, 'AppsFlyerPlugin', 'generateInviteLink', [args]); | ||
}; | ||
/** | ||
* Allowing your existing users to invite their friends and contacts as new users to your app | ||
* args: Parameters for Invite link. | ||
* successCB: Success callback (generated link). | ||
* errorCB: Error callback. | ||
*/ | ||
AppsFlyer.prototype.generateInviteLink = function (args, successCB, errorCB) { | ||
argscheck.checkArgs('O', 'AppsFlyer.generateInviteLink', arguments); | ||
exec(successCB, errorCB, 'AppsFlyerPlugin', 'generateInviteLink', [args]); | ||
}; | ||
/** | ||
* log cross promotion impression. Make sure to use the promoted App ID as it appears within the AppsFlyer dashboard. | ||
* appId: Promoted Application ID | ||
* campaign: Promoted Campaign | ||
*/ | ||
AppsFlyer.prototype.logCrossPromotionImpression = function (appId, campaign) { | ||
argscheck.checkArgs('*', 'AppsFlyer.logCrossPromotionImpression', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'logCrossPromotionImpression', [appId, campaign]); | ||
}; | ||
/** | ||
* log cross promotion impression. Make sure to use the promoted App ID as it appears within the AppsFlyer dashboard. | ||
* appId: Promoted Application ID | ||
* campaign: Promoted Campaign | ||
*/ | ||
AppsFlyer.prototype.logCrossPromotionImpression = function (appId, campaign) { | ||
argscheck.checkArgs('*', 'AppsFlyer.logCrossPromotionImpression', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'logCrossPromotionImpression', [appId, campaign]); | ||
}; | ||
/** | ||
* Launch the app store's app page (via Browser). | ||
* appId: Promoted Application ID. | ||
* campaign: Promoted Campaign. | ||
* params: Additional Parameters to log. | ||
*/ | ||
AppsFlyer.prototype.logCrossPromotionAndOpenStore = function (appId, campaign, params) { | ||
argscheck.checkArgs('*', 'AppsFlyer.logCrossPromotionAndOpenStore', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'logCrossPromotionAndOpenStore', [appId, campaign, params]); | ||
}; | ||
/** | ||
* Launch the app store's app page (via Browser). | ||
* appId: Promoted Application ID. | ||
* campaign: Promoted Campaign. | ||
* params: Additional Parameters to log. | ||
*/ | ||
AppsFlyer.prototype.logCrossPromotionAndOpenStore = function (appId, campaign, params) { | ||
argscheck.checkArgs('*', 'AppsFlyer.logCrossPromotionAndOpenStore', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'logCrossPromotionAndOpenStore', [appId, campaign, params]); | ||
}; | ||
/** | ||
* Log deep linking | ||
*/ | ||
AppsFlyer.prototype.handleOpenUrl = function (url) { | ||
argscheck.checkArgs('*', 'AppsFlyer.handleOpenUrl', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'handleOpenUrl', [url]); | ||
}; | ||
/** | ||
* Log deep linking | ||
*/ | ||
AppsFlyer.prototype.handleOpenUrl = function (url) { | ||
argscheck.checkArgs('*', 'AppsFlyer.handleOpenUrl', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'handleOpenUrl', [url]); | ||
}; | ||
/** | ||
* (iOS) Allows to pass APN Tokens that where collected by third party plugins to the AppsFlyer server. Can be used for log Uninstall. | ||
* token: APN Token. | ||
*/ | ||
AppsFlyer.prototype.registerUninstall = function (token) { | ||
argscheck.checkArgs('*', 'AppsFlyer.registerUninstall', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'registerUninstall', [token]); | ||
}; | ||
/** | ||
* (iOS) Allows to pass APN Tokens that where collected by third party plugins to the AppsFlyer server. Can be used for log Uninstall. | ||
* token: APN Token. | ||
*/ | ||
AppsFlyer.prototype.registerUninstall = function (token) { | ||
argscheck.checkArgs('*', 'AppsFlyer.registerUninstall', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'registerUninstall', [token]); | ||
}; | ||
/** | ||
* Get the current SDK version | ||
* successCB: Success callback that returns the SDK version | ||
*/ | ||
AppsFlyer.prototype.getSdkVersion = function (successCB) { | ||
exec(successCB, null, 'AppsFlyerPlugin', 'getSdkVersion', []); | ||
}; | ||
/** | ||
* Get the current SDK version | ||
* successCB: Success callback that returns the SDK version | ||
*/ | ||
AppsFlyer.prototype.getSdkVersion = function (successCB) { | ||
exec(successCB, null, 'AppsFlyerPlugin', 'getSdkVersion', []); | ||
}; | ||
/** | ||
* Used by advertisers to exclude specified networks/integrated partners from getting data | ||
* networks Comma separated array of partners that need to be excluded | ||
*/ | ||
AppsFlyer.prototype.setSharingFilter = function (networks) { | ||
exec(null, null, 'AppsFlyerPlugin', 'setSharingFilter', [networks]); | ||
}; | ||
/** | ||
* Used by advertisers to exclude specified networks/integrated partners from getting data | ||
* networks Comma separated array of partners that need to be excluded | ||
*/ | ||
AppsFlyer.prototype.setSharingFilter = function (networks) { | ||
exec(null, null, 'AppsFlyerPlugin', 'setSharingFilter', [networks]); | ||
}; | ||
/** | ||
* Used by advertisers to exclude all networks/integrated partners from getting data | ||
*/ | ||
AppsFlyer.prototype.setSharingFilterForAllPartners = function () { | ||
argscheck.checkArgs('*', 'AppsFlyer.setSharingFilterForAllPartners', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'setSharingFilterForAllPartners', []); | ||
}; | ||
/** | ||
* Used by advertisers to exclude all networks/integrated partners from getting data | ||
*/ | ||
AppsFlyer.prototype.setSharingFilterForAllPartners = function () { | ||
argscheck.checkArgs('*', 'AppsFlyer.setSharingFilterForAllPartners', arguments); | ||
exec(null, null, 'AppsFlyerPlugin', 'setSharingFilterForAllPartners', []); | ||
}; | ||
/** | ||
* Receipt validation is a secure mechanism whereby the payment platform (e.g. Apple or Google) validates that an in-app purchase indeed occurred as reported. | ||
* Learn more - https://support.appsflyer.com/hc/en-us/articles/207032106-Receipt-validation-for-in-app-purchases | ||
* @param purchaseInfo json includes: String publicKey, String signature, String purchaseData, String price, String currency, JSONObject additionalParameters. | ||
* @param successC Success callback | ||
* @param errorC Error callback | ||
*/ | ||
AppsFlyer.prototype.validateAndLogInAppPurchase = function(purchaseInfo, successC, errorC){ | ||
exec(successC, errorC, 'AppsFlyerPlugin', 'validateAndLogInAppPurchase', [purchaseInfo]); | ||
}; | ||
/** | ||
* Receipt validation is a secure mechanism whereby the payment platform (e.g. Apple or Google) validates that an in-app purchase indeed occurred as reported. | ||
* Learn more - https://support.appsflyer.com/hc/en-us/articles/207032106-Receipt-validation-for-in-app-purchases | ||
* @param purchaseInfo json includes: String publicKey, String signature, String purchaseData, String price, String currency, JSONObject additionalParameters. | ||
* @param successC Success callback | ||
* @param errorC Error callback | ||
*/ | ||
AppsFlyer.prototype.validateAndLogInAppPurchase = function (purchaseInfo, successC, errorC) { | ||
exec(successC, errorC, 'AppsFlyerPlugin', 'validateAndLogInAppPurchase', [purchaseInfo]); | ||
}; | ||
/** | ||
* When testing purchase validation in the Sandbox environment, please make sure to set true. | ||
* @param isSandbox boolean value | ||
* @param successC Success callback | ||
* @param errorC Error callback | ||
*/ | ||
AppsFlyer.prototype.setUseReceiptValidationSandbox = function(isSandbox, successC, errorC){ | ||
exec(successC, errorC, 'AppsFlyerPlugin', 'setUseReceiptValidationSandbox', [isSandbox]); | ||
}; | ||
/** | ||
* When testing purchase validation in the Sandbox environment, please make sure to set true. | ||
* @param isSandbox boolean value | ||
* @param successC Success callback | ||
* @param errorC Error callback | ||
*/ | ||
AppsFlyer.prototype.setUseReceiptValidationSandbox = function (isSandbox, successC, errorC) { | ||
exec(successC, errorC, 'AppsFlyerPlugin', 'setUseReceiptValidationSandbox', [isSandbox]); | ||
}; | ||
/** | ||
* AppsFlyer SDK dynamically loads the Apple iAd.framework. This framework is required to record and measure the performance of Apple Search Ads in your app. | ||
* If you don't want AppsFlyer to dynamically load this framework, set this property to true. | ||
* @param collectASA | ||
* @param successC | ||
*/ | ||
AppsFlyer.prototype.disableCollectASA = function(collectASA, successC){ | ||
exec(successC, null, 'AppsFlyerPlugin', 'disableCollectASA', [collectASA]); | ||
}; | ||
/** | ||
* AppsFlyer SDK dynamically loads the Apple adSupport.framework. This framework is required to collect IDFA for attribution purposes. | ||
* If you don't want AppsFlyer to dynamically load this framework, set this property to true. | ||
* @param disableAdvertisingIdentifier - true OR false | ||
* @param successC - callback function | ||
*/ | ||
AppsFlyer.prototype.setDisableAdvertisingIdentifier = function(disableAdvertisingIdentifier, successC){ | ||
exec(successC, null, 'AppsFlyerPlugin', 'setDisableAdvertisingIdentifier', [disableAdvertisingIdentifier]); | ||
}; | ||
/** | ||
* AppsFlyer SDK dynamically loads the Apple iAd.framework. This framework is required to record and measure the performance of Apple Search Ads in your app. | ||
* If you don't want AppsFlyer to dynamically load this framework, set this property to true. | ||
* @param collectASA | ||
* @param successC | ||
*/ | ||
AppsFlyer.prototype.disableCollectASA = function (collectASA, successC) { | ||
exec(successC, null, 'AppsFlyerPlugin', 'disableCollectASA', [collectASA]); | ||
}; | ||
/** | ||
* AppsFlyer SDK dynamically loads the Apple adSupport.framework. This framework is required to collect IDFA for attribution purposes. | ||
* If you don't want AppsFlyer to dynamically load this framework, set this property to true. | ||
* @param disableAdvertisingIdentifier - true OR false | ||
* @param successC - callback function | ||
*/ | ||
AppsFlyer.prototype.setDisableAdvertisingIdentifier = function (disableAdvertisingIdentifier, successC) { | ||
exec(successC, null, 'AppsFlyerPlugin', 'setDisableAdvertisingIdentifier', [disableAdvertisingIdentifier]); | ||
}; | ||
module.exports = new AppsFlyer(); | ||
/** | ||
* Set Onelink custom/branded domains | ||
* Use this API during the SDK Initialization to indicate branded domains. | ||
* For more information please refer to https://support.appsflyer.com/hc/en-us/articles/360002329137-Implementing-Branded-Links | ||
* @param domains array of strings | ||
* @param successC success callback | ||
* @param errorC error callback | ||
*/ | ||
AppsFlyer.prototype.setOneLinkCustomDomains = function (domains, successC, errorC) { | ||
exec(successC, errorC, 'AppsFlyerPlugin', 'setOneLinkCustomDomains', [...domains]); | ||
}; | ||
module.exports = new AppsFlyer(); | ||
})(window); |
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
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
6770205
735