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
3
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-appsflyer-sdk

Cordova AppsFlyer SDK Plugin

  • 4.4.18
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.5K
increased by17.46%
Maintainers
3
Weekly downloads
 
Created
Source

Cordova AppsFlyer plugin for Android and iOS.

npm version Build Status


❗️Important
Cordova AppsFlyer plugin version 4.4.0 and higher are meant to be used with cordova-android@7.0.0
For lower versions of cordova-android please use plugin version 4.3.3 available @ https://github.com/AppsFlyerSDK/cordova-plugin-appsflyer-sdk/tree/4.3.3


🛠 In order for us to provide optimal support, we would kindly ask you to submit any issues to support@appsflyer.com

When submitting an issue please specify your AppsFlyer sign-up (account) email , your app ID , production steps, code snippets, logs, and any additional relevant information.


Table of content

This plugin is built for

  • iOS AppsFlyerSDK v4.8.10
  • Android AppsFlyerSDK v4.8.18

📲Installation

$ cordova plugin add cordova-plugin-appsflyer-sdk

To install cordova manually check out the doc here.

📖 Guides

Great installation and setup guides can be viewed here.

🚀 Setup

Set your App_ID (iOS only), Dev_Key and enable AppsFlyer to detect installations, sessions (app opens) and updates.

This is the minimum requirement to start tracking your app installs and is already implemented in this plugin. You MUST modify this call and provide:
devKey - Your application devKey provided by AppsFlyer.
appId - For iOS only. Your iTunes Application ID.

Add the following lines to your code to be able to initialize tracking with your own AppsFlyer dev key:

document.addEventListener('deviceready', function() {

  var options = {
    devKey: '**********spwL', // your AppsFlyer devKey
    isDebug: false,
  };

  var userAgent = window.navigator.userAgent.toLowerCase();
  if (/iphone|ipad|ipod/.test( userAgent )) {
    options.appId = '123456789'; // your ios app id in app store        
  }
   
  var onSuccess = function(result) {
    console.log(result);
  };
  
  function onError(err) {
    console.log(err);
  }
  
  window.plugins.appsFlyer.initSdk(options, onSuccess, onError);
  
}, false);

📑 API

See the full API available for this plugin.

📱 Demo

Check out the demo for this project here.

Keywords

FAQs

Package last updated on 24 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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