iOS 13 "Always" Location permission alert never shows

According to https://developer.apple.com/videos/play/wwdc2019/705/, apps who want to support region monitoring should request always permissions on iOS 13. The user will only initially be prompted to choose "When in Use". The user shouldthen receive a 2nd alert once the device crosses a region to confirm they want an app to user their location in the background.


However, on all iOS 13 betas, I am unable to ever get that dialog. This means that our app never receives the region crossing. To reproduce: 1. Request Always locations permission on iOS 13 2. Accept the prompt with "While in Use" and start monitoring a region 3. Cross the region with the device 4. Expected behavior is you will eventually get a dialog box asking the user to allow this app to use your location in the background. 5. Current behavior is you never recieve the dialog box and the app never receives region crossed delegate methods I have attached a basic sample project in FB7216407. I am on the latest iOS 13 beta and Xcode 10.2.1

I've been testing this too with a region monitor app and I *did* see an alert asking if I wanted to give the app background access to my location. I think I might have re-launched the app at some point after quitting the Xcode debugger which may or may not be important and could have affected the behaviour. I vaguely recall reading something years ago about apps that the user kills from the task switcher stop getting background events. Maybe running and then killing the app from Xcode does the same and that isn't a representative testing scenario?


I need to do more testing. I want to try is running the app with Xcode, quitting it, manually launching the app and only then configuring the region monitoring. I'll switch back to the home screen (and NOT kill the app!) And this time I will try and avoid launching the app again. Will I get the notification when I re-enter the region? I hope so!

We’re you on iOS 13.1 or iOS 13? I just upgraded to the latest 13.1 beta and it started working. Maybe it’s an issue just on 13.0?

I was using 13.1 beta 2. And my testing over the weekend also confirmed that I did see the prompt. I still suspect an important factor is whether the app is left in a killed state or not (either by the user swiping in the app switcher, or stopping debugging with Xcode). Anyway, glad you're seeing it working too.

iOS 13 "Always" Location permission alert never shows
 
 
Q