Skip to content

Latest commit

 

History

History
34 lines (31 loc) · 1.71 KB

BasicIntegration.md

File metadata and controls

34 lines (31 loc) · 1.71 KB

🚀 Basic integration of the SDK

Initialize the SDK to enable AppsFlyer to detect installations, sessions (app opens) and updates.

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 App ID (iOS only) you configured in your AppsFlyer dashboard
isDebug Debug mode - set to true for testing only
onInstallConversionDataListener Set listener for GCD response (Optional. default=true)
onDeepLinkListener Set listener for UDL response (Optional. default=false)
timeToWaitForATTUserAuthorization Waits for request user authorization to access app-related data. please read more here