Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 11 Location Permission in

I have an app that need to use "always" as location update. However, it is found that after I have upgraded my device to iOS11, the app never ask me for permission.

and then when i go to Privacy > Location > the choices of "always" and "when in use" disappeared.

I have checked it is needed to add "Privacy – Location Always Usage Description" in the plist file. I have added, but it is still the same that it cannot track the location.

Anythings i have missed to update my code?

like image 881
user6539552 Avatar asked Sep 24 '17 16:09

user6539552


People also ask

How do I turn on location permissions on iPhone 11?

Go to Settings > Privacy, then select Location Services. Select an app, then turn Precise Location on or off.

How do I enable location permissions in iOS?

You can turn Location Services on or off at Settings > Privacy > Location Services. You can turn Location Services on either during the Setup Assistant process or later through the Location Services setting. You can individually control which apps and system services have access to Location Services data.

Why can't I allow location on my iPhone?

From the Apple menu , choose System Preferences, click Security & Privacy, then click Privacy. Make sure that Enable Location Services is selected. If the lock in the lower-left corner is closed, click it, then enter your user name and password. Select the checkbox next to Maps.


1 Answers

For iOS 11, there's a new key NSLocationAlwaysAndWhenInUseUsageDescription. Add this key to Info.plist.

like image 197
chengsam Avatar answered Sep 19 '22 12:09

chengsam