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

Setting app tracking transparency without pop up #32

Open JMartinSync opened 3 years ago

JMartinSync commented 3 years ago

Hi there! Sry if it is not the right place but I didnt found another way to request this. We added this plugin to our project some time ago, but now we have found a problem:

manelizzard commented 3 years ago

Hello @JMartinSync,

Unfortunately that is tricky and might not be compliant with Apple's privacy guidelines and requirements. Per design, if you try to show ATT popup twice, it won't show. It will only show the very first time (Apple's decision). Per the privacy guidelines, I would say Apple won't allow to redirect the user to the system privacy settings (or at least not to incentivice it by gifting the user to turn on that setting).

We would examine and determine if we add this feature or not. Meanwhile, you can create a very simple iOS file with the following code:

    NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
    if ([[UIApplication sharedApplication] canOpenURL:url]) {
        [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
    }

Calling that code block should open iOS Settings and allow the user to change their privacy.

Best