Skip to content

@segment/analytics-react-native-appsflyer changes for IOS 14.* #338

@beqramo

Description

@beqramo

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:
image

the instructions that I'm trying to add:
image

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
      }
  }
}

The error:
image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions