Starting in 2021, apple is requiring to display a dialog to consent user tracking, so supposedly, even advertising sdks (that tracks a lot of user content for sure) can't be enabled if the user has not accepted that dialog.
https://developer.apple.com/app-store/user-privacy-and-data-use/ https://developer.apple.com/documentation/apptrackingtransparency
Apple gives this function to display the dialog: requestTrackingAuthorization()
the problem is that this function is only displayed one time, so if the user has not accepted it, it is not accepted for ever. Our intention was to close the app if the dialog is not accepted, and display again next time the app is opened, but requestTrackingAuthorization()
is not displaying the dialog anymore.
How to solve this situation? How to be able to call that function more than one time?
Imagine that the user has cancelled it, then you are not allowed to display ads never for that user, because ad sdks tracks user content.