0

I am trying to find if the users current app install if the first or if its a reinstall. Is there any way to determine this using iOS SDK?

Parin Shah
  • 189
  • 2
  • 11

1 Answers1

1

You can make use of the getAppsFlyerUID API and compare the ID's you are getting.

Swift:

let appsflyerId = AppsFlyerTracker.shared().getAppsFlyerUID()

Objective-C:

NSString *appsflyerId = [AppsFlyerTracker sharedTracker].getAppsFlyerUID;

For every new install, you should see a new AppsFlyer ID.

For this to work in between app reinstalls, you'll have to keep the "old" AppsFlyer ID in a persistent data storage like KeyChain or an internal BI system - so you can compare (or check if a previous ID exists).