Hi
I am working on my app to support ipad split view.
My problem is that the location permission request popup doesn't appear immediately when split view is activated.
The summarized code is below.
import CoreLocation
class MyViewController: UIViewController {
var locationManager = CLLocationManager()
//skip code...
@objc func touchUpInsideLocationButton(_ sender: Any) {
self.locationManager.requestWhenInUseAuthorization()
}
}
After the code that handles the button touch is executed, the system popup requesting the location permission does not appear. When I close the iPad split view (Drag the app divider to the left or right edge of the screen), a system popup appears at that time.
When requesting permission to access photos in iPad split view, a system pop-up appeared immediately.
The location information permission popup should also appear immediately, but I'm not sure if it's a bug or the intended behavior.
Please help. Have a nice day 😄