Location permission request popup not working as expected in iPad split view

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 😄

  • Have you found a solution for this issue? I am having the same problem. After sending a request to the location manager, nothing happens until split screen is closed. The other permissions work as expected.

    This can actually be reproduced with Apple Maps (!). When launching Maps and quickly entering split screen, only after closing it the permission request is shown.

  • I haven't found a solution yet. 😭

Add a Comment

Replies

deleted

same here