AppsFlyerSDK / appsflyer-react-native-plugin

AppsFlyer plugin for React Native
MIT License
276 stars 197 forks source link

Wrong integration docs #482

Closed lukebars closed 1 year ago

lukebars commented 1 year ago

Report

Plugin Version

6.10.3

What did you expect to happen?

Integration docs state that initSDK method grabs these parameters:

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);
  }
);

What happened instead?

While in reality it supports only these parameters:

    appsFlyer.initSdk(
      {
        devKey,
        isDebug, 
        appId,
        timeToWaitForAdvertiserID: 10,
      },
lukebars commented 1 year ago

Seems like it was changed between 6.0.0 and 6.10.x somewhere. These changes shouldn't happen between minor versions.