title | category | parentDoc | order | hidden |
---|---|---|---|---|
Integration |
5f9705393c689a065c409b23 |
645213236f53a00d4daa9230 |
3 |
false |
Initialize the SDK to enable AppsFlyer to detect installations, sessions (app opens) and updates.
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 |
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);
}
);