ATT compliance React Native(iOS)
Last updated
Last updated
To ensure compliance with Apple privacy guidelines and regulations, we don't track data if users don't allow it.
Add NSUserTrackingUsageDescription
key and related value in Info.plist
.
Present an app-tracking authorization request to the user. The sample codes are:
If your AppDelegate
class is written by Objective-C, you should create a Swift file to call the API. For example, you could create FireworkSupportLibraryBridge.swift
and add the following codes.
Then add [FireworkSupportLibraryBridge requestTrackingPermision];
on application:didFinishLaunchingWithOptions:
method.
For example, the users will see the following pop-up window for the first time.
It's not required to call ATTrackingManager.requestTrackingAuthorization
in application(:, didFinishLaunchingWithOptions:) -> Bool
For more details, please refer to the following links: