Guideline 5.1.2 - Legal - Privacy - Data Use and Sharing
The app privacy information you provided in App Store Connect indicates you collect data in order to track the user, including Crash Data. However, you do not use App Tracking Transparency to request the user's permission before tracking their activity.
Starting with iOS 14.5, apps on the App Store need to receive the user’s permission through the AppTrackingTransparency framework before collecting data used to track them. This requirement protects the privacy of App Store users.
I am getting this rejected message from apple. But I added AppTrackingTransparency to my project and alerts when the app launches. What must I do for the next step?
P.s I am using Firebase's Crashlytics.
struct AppDelegateHelper {
static func askAppTrackingTransparency() {
// Request user authorization to access app-related data for tracking the user or the device.
if #available(iOS 14, *) {
ATTrackingManager.requestTrackingAuthorization { status in
switch status {
case .authorized:
print("Allowed to AppTrackingTransparency")
break
case .denied: break
case .notDetermined: break
case .restricted: break
}
}
} else {
// Fallback on earlier versions
print("Can't ask AppTrackingTransparency")
}
}
}