-
Notifications
You must be signed in to change notification settings - Fork 204
Closed
Description
Hi, I'm trying to add support for IOS 14 and when I'm trying to run the app it throws an error. I think this is a problem because I tried to submit in an AppStore without this code and they rejected it with the error:

the instructions that I'm trying to add:

and actual code from AppDelegate.m:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
if #available(iOS 14, *) {
// Set a timeout for the SDK to wait for the IDFA collection before handling app launch
AppsFlyerLib.shared().waitForAdvertisingIdentifier(withTimeoutInterval: 60)
// Show the user the Apple IDFA consent dialog (AppTrackingTransparency)
// Can be called in any place
ATTrackingManager.requestTrackingAuthorization { (status) in
}
}
}package.json:
"@segment/analytics-react-native": "^1.4.9",
"@segment/analytics-react-native-appsflyer": "^1.4.9",
"@segment/analytics-react-native-mixpanel": "^1.4.9",
"react-native": "0.64.1",Thanks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
