I'm working on an existing project and haven't used AppsFlyer before.
in older version of AppsFlyer we have initialized it using these lines in AppDelegate
AppsFlyerTracker.shared().appsFlyerDevKey = appsflyerKey
AppsFlyerTracker.shared().appleAppID = appId
AppsFlyerTracker.shared().trackAppLaunch()
And Track events using
AppsFlyerTracker.shared().trackEvent("Started", withValues: prop)
But in the latest version of AppsFlyer the initial class name has changed from
AppsFlyerTracker -> AppsFlyerLib
// now event is logged by
AppsFlyerLib.shared().logEvent("Started", withValues: prop)
So I have two questions
As according to guide lines in iOS 14, we need to add permission for user to accept it before any tracking. Is it applies to these AppsFlyers logEvent event too ?
if we need to add permission then adding these lines will fill the purpose ?
AppsFlyerLib.shared().waitForATTUserAuthorization(timeoutInterval: 60) ATTrackingManager.requestTrackingAuthorization { (status) in }
I didn't find alternate for AppsFlyerTracker.shared().trackAppLaunch() in the latest AppsFlyerLib