I need change the rootViewController while applicationDidBecomeActive called. So I use this kind of code to do this work and it works well before.
[UIApplication sharedApplication].keyWindow.rootViewController = newViewController;
But after upgrade to iOS 15, this will make the keyWindow lose the rootViewController and get a blank page.
After serval try, I found it could work after delay 0.1 seconds.
Post
Replies
Boosts
Views
Activity
Is it still need to work for lunch app by BLE, and connection to car, authentication.
If not, how to send some request to car to do some more operation?
My app needs monitors the iBeacon, so it needs always access the location service.
But it always show this prompt - https://support.apple.com/library/content/dam/edam/applecare/images/en_US/iOS/ios13-iphone-xs-app-using-location-in-background.jpg to let user change the setting to 'while using'. It's confuse for users, and I also not call the location service at background.
How to avoid show this prompt? Which API call trigger this prompt?