6

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?

user6539552
  • 1,331
  • 2
  • 19
  • 39

1 Answers1

11

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

chengsam
  • 7,315
  • 6
  • 30
  • 38
  • Please check as this must the entry in plist :- NSLocationAlwaysAndWhenInUseUsageDescription. There is a difference of "Use" in both the entry. – ashForIos Nov 17 '17 at 10:51
  • You will also need NSLocationWhenInUseUsageDescription, see https://stackoverflow.com/a/46339284/3024579 – jbcaveman Nov 30 '17 at 17:41