All Projects → AppsFlyerSDK → Appsflyer React Native Plugin

AppsFlyerSDK / Appsflyer React Native Plugin

Licence: mit
AppsFlyer plugin for React Native

Projects that are alternatives of or similar to Appsflyer React Native Plugin

Cloudinary ios
Cloudinary iOS SDK
Stars: ✭ 133 (-10.74%)
Mutual labels:  sdk
Filestack Android
Official Android SDK for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
Stars: ✭ 140 (-6.04%)
Mutual labels:  sdk
Auth0.swift
Swift toolkit for Auth0 API
Stars: ✭ 146 (-2.01%)
Mutual labels:  sdk
Oss.clients.sns
社交网站sdk(标准库),微信公众号(订阅号,服务号,小程序)接口sdk-包含消息回复(明文和安全模式),Oauth2.0授权等
Stars: ✭ 136 (-8.72%)
Mutual labels:  sdk
Onfido Sdk Ui
The Onfido SDK for Front-end JavaScript
Stars: ✭ 139 (-6.71%)
Mutual labels:  sdk
Gochat
🔥 微信 Go SDK 🚀🚀🚀
Stars: ✭ 141 (-5.37%)
Mutual labels:  sdk
Cordova Plugin Googlemaps
Google Maps plugin for Cordova
Stars: ✭ 1,647 (+1005.37%)
Mutual labels:  sdk
Dropbox Sdk Go Unofficial
⚠️ An UNOFFICIAL Dropbox v2 API SDK for Go
Stars: ✭ 148 (-0.67%)
Mutual labels:  sdk
Facebook Js Ads Sdk
[DEPRECATED] OFFICIAL FACEBOOK SDK: https://github.com/facebook/facebook-nodejs-ads-sdk
Stars: ✭ 140 (-6.04%)
Mutual labels:  sdk
Java Stellar Sdk
Stars: ✭ 146 (-2.01%)
Mutual labels:  sdk
Kube Aws Iam Controller
Distribute different AWS IAM credentials to different pods in Kubernetes via secrets.
Stars: ✭ 137 (-8.05%)
Mutual labels:  sdk
Cityengine Sdk
CityEngine is a 3D city modeling software for urban design, visual effects, and VR/AR production. With its C++ SDK you can create plugins and standalone apps capable to execute CityEngine CGA procedural modeling rules.
Stars: ✭ 137 (-8.05%)
Mutual labels:  sdk
Hedera Sdk Java
Hedera™ Hashgraph SDK for Java
Stars: ✭ 143 (-4.03%)
Mutual labels:  sdk
Thinkphp5 Wechat
微信 SDK for thinkphp5, 基于 overtrue/wechat
Stars: ✭ 133 (-10.74%)
Mutual labels:  sdk
Parse Sdk Android
The Android SDK for the Parse Platform
Stars: ✭ 1,806 (+1112.08%)
Mutual labels:  sdk
Contentful.swift
A delightful Swift interface to Contentful's content delivery API.
Stars: ✭ 132 (-11.41%)
Mutual labels:  sdk
Xmind Sdk Js
The XMind SDK for javascript in browser and Node.js.
Stars: ✭ 143 (-4.03%)
Mutual labels:  sdk
Dialogflow Ruby Client
Ruby SDK for Dialogflow
Stars: ✭ 148 (-0.67%)
Mutual labels:  sdk
Kittik
Create slides in TypeScript and present them in the terminal using ASCII only!
Stars: ✭ 147 (-1.34%)
Mutual labels:  sdk
Pyvcloud
Python SDK for VMware vCloud Director
Stars: ✭ 143 (-4.03%)
Mutual labels:  sdk

React Native AppsFlyer plugin for Android and iOS.

🛠 In order for us to provide optimal support, we would kindly ask you to submit any issues to [email protected]

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

npm version License: MIT Downloads

Table of content

This plugin is built for

  • iOS AppsFlyerSDK v6.2.4
  • Android AppsFlyerSDK v6.2.0

❗ Breaking Changes

  • From version 6.2.30, logCrossPromotionAndOpenStore api will register as af_cross_promotion instead of af_app_invites in your dashboard.
    Click on a link that was generated using generateInviteLink api will be register as af_app_invites.

  • We have renamed the following APIs:

Old API New API
trackEvent logEvent
trackLocation logLocation
stopTracking stop
trackCrossPromotionImpression logCrossPromotionImpression
trackAndOpenStore logCrossPromotionAndOpenStore
setDeviceTrackingDisabled anonymizeUser
AppsFlyerTracker AppsFlyerLib

And removed the following ones:

  • trackAppLaunch -> no longer needed. See new init guide
  • sendDeepLinkData -> no longer needed. See new init guide
  • enableUninstallTracking -> no longer needed. See new uninstall measurement guide

If you have used 1 of the removed APIs, please check the integration guide for the updated instructions

📲 Adding the SDK to your project

Production version from npm:

$ npm install react-native-appsflyer --save

Then run the following:

iOS

$ cd ios && pod install
$ react-native run-ios

Android

$ react-native run-android

Starting from RN v0.60, and react-native-appsflyer v1.4.7 the plugin uses autolinking.
If your app does not support autolinking, check out the Installation Guide here.

👨‍👩‍👧‍👦 Add or Remove Strict mode for App-kids

Starting from version 6.1.10 iOS SDK comes in two variants: Strict mode and Regular mode. Please read more here

Change to Strict mode
After you installed the AppsFlyer plugin, go to the react-native-appsflyer folder inside the node_modules folder:

cd node_modules/react-native-appsflyer

Run the script changeMode.sh strict

./changeMode.sh strict

Go to the ios folder in your root project

cd ../../ios

Run pod install

Change to Regular mode
Go to the react-native-appsflyer folder inside the node_modules folder:

cd node_modules/react-native-appsflyer

Run the script changeMode.sh (WITHOUT strict)

./changeMode.sh

Go to the ios folder in your root project

cd ../../ios

Run pod install

🚀 Initializing the SDK

Initialize the SDK to enable AppsFlyer to detect installations, sessions (app opens) and updates.
NOTE! for iOS 14.5, we use timeToWaitForATTUserAuthorization parameter. please read more Here

import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View} from 'react-native';
import appsFlyer from 'react-native-appsflyer';

appsFlyer.initSdk(
  {
    devKey: 'K2***********99',
    isDebug: false,
    appId: '41*****44',
    onInstallConversionDataListener: true, //Optional
    onDeepLinkListener: true, //Optional
    timeToWaitForATTUserAuthorization: 10 //for iOS 14.5
  },
  (result) => {
    console.log(result);
  },
  (error) => {
    console.error(error);
  }
);
Setting Description
devKey Your application devKey provided by AppsFlyer (required)
appId Your iTunes application ID (iOS only)
isDebug Debug mode - set to true for testing only
onInstallConversionDataListener Set listener for SDK init response (Optional. default=true)
onDeepLinkListener Set listener for DDL response (Optional. default=false)
timeToWaitForATTUserAuthorization Time for the sdk to wait before launch. please read more Here

📖 Guides

Great installation and setup guides can be viewed here.

📑 API

See the full API available for this plugin.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].