Hey,
My app takes the users location, and tells them how far away they are from a destination. This information is then shown in a table view. My problem is that the dialog box asking for permission to use the users location only appears for a split second before the table view, not giving the user enough time to allow the use of their location. I've tried calling [CLLocationManager startUpdatingLocation] when the app loads, in an attempt to force the app to display the dialog box early, but that doesn't work.
Is there any way to either stop the dialog box from disappearing so quickly, or to get the app to ask for permission as soon as it loads?
Thanks!
My app takes the users location, and tells them how far away they are from a destination. This information is then shown in a table view. My problem is that the dialog box asking for permission to use the users location only appears for a split second before the table view, not giving the user enough time to allow the use of their location. I've tried calling [CLLocationManager startUpdatingLocation] when the app loads, in an attempt to force the app to display the dialog box early, but that doesn't work.
Is there any way to either stop the dialog box from disappearing so quickly, or to get the app to ask for permission as soon as it loads?
Thanks!
Last edited: