Skip to content

Commit 2e23ad5

Browse files
authored
updating code sample per partners request
Based on partners request - updating the code sample to their new function name "They documented an outdated version of the method waitForAdvertisingIdentifier - https://segment.com/docs/connections/destinations/catalog/appsflyer/#additional-device-mode-set-up-for-ios-14-support The method name has been changed in our SDK to waitForATTUserAuthorization a while ago, and their documentation needs to be updated accordingly. "
1 parent 9d34ae8 commit 2e23ad5

File tree

1 file changed

+1
-1
lines changed
  • src/connections/destinations/catalog/appsflyer

1 file changed

+1
-1
lines changed

src/connections/destinations/catalog/appsflyer/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ To use the latest AppsFlyer SDK to collect IDFAs, do the following:
4343
// for iOS 13 and earlier - The IDFA will be collected by the SDK. The user will NOT be prompted for permission.
4444
if #available(iOS 14, *) {
4545
// Set a timeout for the SDK to wait for the IDFA collection before handling app launch
46-
AppsFlyerLib.shared().waitForAdvertisingIdentifier(withTimeoutInterval: 60)
46+
AppsFlyerLib.shared().waitForATTUserAuthorization(withTimeoutInterval: 60)
4747
// Show the user the Apple IDFA consent dialog (AppTrackingTransparency)
4848
// Can be called in any place
4949
ATTrackingManager.requestTrackingAuthorization { (status) in

0 commit comments

Comments
 (0)