Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-appsflyer-sdk

Package Overview
Dependencies
Maintainers
1
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-appsflyer-sdk - npm Package Compare versions

Comparing version 4.2.16 to 4.2.17

4

examples/demoC/www/js/index.js

@@ -19,2 +19,6 @@ /*

*/
//
var handleOpenURL = function(url) {
window.plugins.appsFlyer.handleOpenUrl(url);
}
var app = {

@@ -21,0 +25,0 @@ // Application Constructor

2

package.json
{
"name": "cordova-plugin-appsflyer-sdk",
"version": "4.2.16",
"version": "4.2.17",
"description": "Cordova AppsFlyer SDK Plugin",

@@ -5,0 +5,0 @@ "cordova": {

@@ -305,15 +305,13 @@ <img src="https://www.appsflyer.com/wp-content/uploads/2016/11/logo-1.svg" width="200">

Open in Xcode `AppDelegate.m`, add `#import "AppsFlyerTracker.h"` and add the following method under `application: openURL` :
Add the following lines to your code to be able to track deeplinks with AppsFlyer attribution data:
```objective-c
[[AppsFlyerTracker sharedTracker] handleOpenURL:url sourceApplication:sourceApplication withAnnotation:annotation];
for pure Cordova - add a function 'handleOpenUrl' to your root, and call our SDK as shown:
```javascript
window.plugins.appsFlyer.handleOpenUrl(url);
```
It appears as follows:
```objective-c
-(BOOL) application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
[[AppsFlyerTracker sharedTracker] handleOpenURL:url sourceApplication:sourceApplication withAnnotation:annotation];
return YES;
```javascript
var handleOpenURL = function(url) {
window.plugins.appsFlyer.handleOpenUrl(url);
}

@@ -349,2 +347,2 @@ ```

![demo printscreen](examples/demo_example.png?raw=true)
![demo printscreen](examples/demo_example.png?raw=true)

@@ -66,6 +66,3 @@ /* jshint jasmine: true */

it("appsFlyer.onInstallConversionDataLoaded method", function(){
expect(window.plugins.appsFlyer.onInstallConversionDataLoaded).toBeDefined();
expect(typeof window.plugins.appsFlyer.onInstallConversionDataLoaded).toBe('function');
});

@@ -72,0 +69,0 @@ });

@@ -22,21 +22,16 @@

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 (!args) {
if (errorCB) {
errorCB(AppsFlyerError.APPID_NOT_VALID);
}
}
exec(successCB, errorCB, "AppsFlyerPlugin", "initSdk", [args]);
}
errorCB(AppsFlyerError.INVALID_ARGUMENT_ERROR);
}
} else {
if(args.appId !== undefined && typeof args.appId != 'string'){
if (errorCB) {
errorCB(AppsFlyerError.APPID_NOT_VALID);
}
}
exec(successCB, errorCB, "AppsFlyerPlugin", "initSdk", [args]);
}
};
AppsFlyer.prototype.setCurrencyCode = function (currencyId) {

@@ -74,7 +69,7 @@ argscheck.checkArgs('S', 'AppsFlyer.setCurrencyCode', arguments);

AppsFlyer.prototype.handleOpenUrl = function (url) {
argscheck.checkArgs('*', 'AppsFlyer.handleOpenUrl', arguments);
exec(null, null, "AppsFlyerPlugin", "handleOpenUrl", [url]);
};
global.cordova.addConstructor(function () {

@@ -91,5 +86,5 @@ if (!global.Cordova) {

});
}(window));
} (window));
module.exports = Object.freeze({
INVALID_ARGUMENT_ERROR: "INVALID_ARGUMENT_ERROR",
NO_DEVKEY_FOUND: "No 'devKey' found or its empty",
INVALID_ARGUMENT_ERROR: "INVALID ARGUMENT ERROR",
NO_DEVKEY_FOUND: "No 'devKey' found or is empty",
APPID_NOT_VALID: "'appId' is not valid",
NO_APPID_FOUND: "No 'appId' found or its empty",
NO_APPID_FOUND: "No 'appId' found or is empty",
SUCCESS: "Success"
});

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc