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>
