Vikas Rajput
Vikas Rajput

Reputation: 1874

Your app contains NSUserTrackingUsageDescription, indicating that you will request permission to track users

I have added Google Admob framework for showing ads in app and getting the error related to User Tracking Usage in itunes connect app privacy section. iTunesConnect is not allowing to submit the app. After that i have the proper key and description in info.plist.

<key>NSUserTrackingUsageDescription</key>
<string>App would like to access IDFA for tracking purpose</string>

And also added code for requesting permission in login page and called it in viewDidLoad.

    func requestPermission() {
    if #available(iOS 14, *) {
        ATTrackingManager.requestTrackingAuthorization { status in
            switch status {
            case .authorized:
                // Tracking authorization dialog was shown
                // and we are authorized
                print("Authorized")
                
                // Now that we are authorized we can get the IDFA
                print(ASIdentifierManager.shared().advertisingIdentifier)
            case .denied:
                // Tracking authorization dialog was
                // shown and permission is denied
                print("Denied")
            case .notDetermined:
                // Tracking authorization dialog has not been shown
                print("Not Determined")
            case .restricted:
                print("Restricted")
            @unknown default:
                print("Unknown")
            }
        }
    } else {
        // Fallback on earlier versions
    }
}

But Still error is not going from iTunesConnect after uploading the new build, I'm not able to submit build. Any one has faced the same thing ? How this error will be hide>

enter image description here

Upvotes: 12

Views: 42881

Answers (4)

Abdul Ahath
Abdul Ahath

Reputation: 209

I got the same error when i selected "NO" on the Data collection questionnaire.

Even you are not collecting data for yourself, Google will collect the data for their admob advertising purposes. For resolve this error, you must edit the Data collection questionnaire and select "YES".

enter image description here

More than that, you must indicate more specifically what data you are collecting. Apple has announced data disclosure requirements will be required for new apps and app updates starting December 8, 2020.

For this issue, Google Admob provided a statement. But this statement is vague. It doesn't give the questionnaire answers. So searched and found an article that clearly give the solution for my issue. Refer the Michael Kiley's Medium Article and Fill the questionnaires.

Upvotes: 0

Peter Andela
Peter Andela

Reputation: 456

I get the similar error, "Your app contains NSUserTrackingUsageDescription, indicating that you will request permission to track users.".

I removed the NSUserTrackingUsageDescription from the info.plist file, and the UMP lib in a new build and everything related.

And all the Admob requests have [GADMobileAds.sharedInstance.requestConfiguration tagForChildDirectedTreatment:YES];

But Appstoreconnect keeps giving the same error. Seems like appsstoreconnect is checking all the builds even when they are not used.

Upvotes: 4

inder_gt
inder_gt

Reputation: 622

The issue is due to how the "App Privacy" section is set up. Based on your choices, it has determined that you are not collecting any data.

This is false because you are using IDFA (advertising identifier) so you are collecting "identifiers."

You need to revisit the "App Privacy" and modify your choices.

Upvotes: 5

Michelle
Michelle

Reputation: 179

You only need to use the NSUserTrackingUsageDescription property in the info.plist if you are collecting user data for Advertising and/or Third-Party libraries.

If you keep the information within your app, or for authentication purposes, you are not Tracking; therefore, you do not need this property. (I hope I've interpreted this correctly.)

In other words, the information you provided in the App Privacy section of App Store Connect, is inconsistent with the NSUserTrackingUsageDescription property in the info.plist.

Upvotes: 11

Related Questions