AppsFlyerSDK / appsflyer-cordova-plugin

AppsFlyer plugin for Cordova
MIT License
37 stars 71 forks source link

Ionic: @ionic-native/appsflyer is out of date with all latest features and breaking changes #103

Closed bobrosoft closed 4 years ago

bobrosoft commented 4 years ago

Hi there. Please update @ionic-native/appsflyer with latest breaking changes and new options like waitForATTUserAuthorization. https://github.com/ionic-team/ionic-native/blob/master/src/%40ionic-native/plugins/appsflyer/index.ts#L4

Thanks.

mariusbolik commented 4 years ago

You can use it like this as long as the plugin isn't updated:

async initAppsFlyer() {
  try {
    await this.platform.ready();
    if (this.platform.is('cordova')) {
      await this.appsflyer.initSdk({
        devKey: '*****',
        appId: '*******',
        isDebug: false,
        waitForATTUserAuthorization: 10,
      } as any);
    }
  } catch (error) {
    console.error(error);
  }
}

I also submitted a pull request: https://github.com/ionic-team/ionic-native/pull/3541