I’m using Core Location in my app, app asks user if he wants to use Location services, but I use in my app async requests, so app doesn’t wait while user answer “Ok” or “dismiss”. Ho can I prevent this? I want that my request will be send when user taps “OK”. Thank you
Share
In iOS 4.2 and up, your delegate will receive a message
locationManager:didChangeAuthorizationStatus:when the authorization status changes (i.e. the user responds to the dialog, or the user backgrounds your app and goes into Settings and changes the global location settings). If you support earlier versions, you’ll have to fall back to guessing based onlocationManager:didUpdateToLocation:fromLocation:andlocationManager:didFailWithError:messages (especially the NSError codekCLErrorDeniedin the latter).