Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 498 Vote(s) - 3.45 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Location Services not working in iOS 8

#21
I was pulling my hair out with the same problem. Xcode gives you the error:

> Trying to start `MapKit` location updates without prompting for
> location authorization. Must call `-[CLLocationManager
> requestWhenInUseAuthorization]` or `-[CLLocationManager
> requestAlwaysAuthorization]` first.

But even if you implement one of the above methods, it won't prompt the user unless there is an entry in the info.plist for `NSLocationAlwaysUsageDescription` or `NSLocationWhenInUseUsageDescription`.

Add the following lines to your info.plist where the string values represent the reason you you need to access the users location

<key>NSLocationWhenInUseUsageDescription</key>
<string>This application requires location services to work</string>

<key>NSLocationAlwaysUsageDescription</key>
<string>This application requires location services to work</string>

I think these entries may have been missing since I started this project in Xcode 5. I'm guessing Xcode 6 might add default entries for these keys but have not confirmed.

You can find more information on these two Settings [here][1]


[1]:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through