AppTrackingTransparency problem on real device

Hi.

I am adding AppTrackingTransparency to my application. I have added all requirements from documentation and regularly alert shows when the app launches. The problem is related to real devices. I achieve to display privacy alert on the simulator but can't do this on the real phone. How can fix this issue, please help me?

P.s ios version: 15 Xcode version: 13

Replies

I resolved this problem, adding permission request in viewDidAppear of my first ViewController. In my case I have two permission request, App Tracking Transparency and Location. Firstly I call App Tracking Transparency permission and , in its completionHandler I call the Location permission. I my case I didn't need put any delay. Just put in viewDidAppear method.