Balaso-Software / app-tracking-transparency-for-unity

Later this year Apple will require your apps/games to request user's authorization in order to obtain the Identifier for Advertising (IDFA), used to optimize and maximize your Ads revenue
16 stars 1 forks source link

Is it possible to check if the ATT dialogue was actually displayed for the user? #15

Closed SimonImpact closed 3 years ago

SimonImpact commented 3 years ago

Hi, I noticed that the ATT dialogue is not displayed for example for iOS12 users when calling the RequestTrackingAuthorization function. Same situation if trying to call the function when the user has already given an answer.

Is it possible to check if the dialogue was actually shown or not after calling RequestTrackingAuthorization?

Best Regards Simon

andymads commented 3 years ago

App Tracking Transparency only applies on iOS 14+.

You can call AppTrackingTransparency.TrackingAuthorizationStatus to get the current status on startup and when returning from background.

If the result is NOT_DETERMINED then you can assume that the system popup will be shown when you call AppTrackingTransparency.RequestTrackingAuthorization.

manelizzard commented 3 years ago

Thank you @andymads. Exactly, when we obtain NOT_DETERMINED as the first result, we assume the popup will be shown upon AppTrackingTransparency.RequestTrackingAuthorization.

There is nothing we can query to determine if the popup was shown or not.

Hope this helped you @SimonImpact

SimonImpact commented 3 years ago

Thank you @andymads and @manelizzard ! That answered my question.