• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: MapKit location authorization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MapKit location authorization


  • Subject: Re: MapKit location authorization
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Sat, 20 Sep 2014 11:08:03 +0700

On 20 Sep 2014, at 01:30, Rick Mann <email@hidden> wrote:

>
> On Sep 19, 2014, at 11:06 , John Tsombakos <email@hidden> wrote:
>
>> You also need to add items to your Info.plist file:
>>
>> NSLocationAlwaysUsageDescription
>>
>> and/or
>>
>> NSLocationWhenInUseUsageDescription
>
> And to clarify, these are keys for a string value. That string value gets displayed as detail text in the authorization dialog. I just ran into all this myself yesterday, and it was not at all clear that this had to be done. I don't know why MKMapView can't handle all this on its own.

Very good advice! This was the magic thing I was missing.

I'm sure this is clearly documented somewhere (maybe at the local planning department in Alpha Centauri).

Anyway, all is well now and thanks very much!

Kind regards,

Gerriet.

>
>>
>> On Sep 19, 2014, at 2:01 PM, Gerriet M. Denkmann <email@hidden> wrote:
>>
>>>
>>> So I put it into viewDidLoad of the view controller for the MapView.
>>>
>>> But:
>>>
>>> authorizationStatus = kCLAuthorizationStatusNotDetermined
>>> locationServicesEnabled = YES
>>>
>>> so I do (as recommended):
>>> [ self.locationManager requestWhenInUseAuthorization ];
>>>
>>> Now I would expect a panel to come up, asking the user "Do you want to allow this app to use Location Services?"
>>> But nothing is seen (iOS 8.0).
>>>
>>> And when I ask the manager for a location, I just get nil.
>>>
>>> Later on I get: locationManager:didChangeAuthorizationStatus: kCLAuthorizationStatusNotDetermined
>>>
>>> and: "Trying to start MapKit location updates without prompting for location authorization."
>>>
>>> Not very useful.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: MapKit location authorization
      • From: Roland King <email@hidden>
References: 
 >MapKit location authorization (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: MapKit location authorization (From: Roland King <email@hidden>)
 >Re: MapKit location authorization (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: MapKit location authorization (From: John Tsombakos <email@hidden>)
 >Re: MapKit location authorization (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Writing, then reading JSON
  • Next by Date: Re: MapKit location authorization
  • Previous by thread: Re: MapKit location authorization
  • Next by thread: Re: MapKit location authorization
  • Index(es):
    • Date
    • Thread