com.unity.ads.ios-support icon indicating copy to clipboard operation
com.unity.ads.ios-support copied to clipboard

ATT popup not showing in a non-development build in iOS 18.1.1

Open lraszyk opened this issue 1 year ago • 2 comments

Hello,

We've been using the package for over a year without any problem, however recently, after updating our devices to iOS 18.1.1 we discovered that the ATT popup doesn't show in our current and past store builds. What's interesting, when building the same revision with the same configuration but in development mode, the popup is there. The problem seems to regard only release builds on devices with iOS 18.1.1.

Cases:

  • release build + iOS 14.2: popup OK
  • development build + iOS 14.2: popup OK
  • release build + iOS 18.1.1: NO popup
  • development build + iOS 18.1.1: popup OK

We are using Unity 2022.3.39f1 and we have the NSUserTrackingUsageDescription entry in plist. The iOS Advertising Support package version is 1.2.0.

Any ideas, please?

lraszyk avatar Dec 11 '24 09:12 lraszyk

Hi @lraszyk did you able to understand and find a fix of the issue ?

FoxsterDev avatar Jan 19 '25 21:01 FoxsterDev

I found a trick to request the popup in Monobehaviour it works IEnumerator Start() { #if UNITY_IOS

        yield return new WaitForSeconds(1.0f);
        RequestTrackingAuthorization();

#endif }

before I tried to request in a method with [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]

FoxsterDev avatar Jan 19 '25 22:01 FoxsterDev