How to check GPS permission is on or off for specific our application in iOS?
gps, ios, iphone, objective-c
Solution
`[CLLocationManager authorizationStatus]` returns a `CLAuthorizationStatus` which is typedef'd to be `kCLAuthorizationStatusNotDetermined, kCLAuthorizationStatusRestricted, kCLAuthorizationStatusDenied,` or `kCLAuthorizationStatusAuthorized`.
`kCLAuthorizationStatusAuthorized` means you can use the GPS, and anything else means you can't.
(`kCLAuthorizationStatusDenied` means they have disallowed you, `kCLAuthorizationStatusRestricted` means you can't due to parental controls, `kCLAuthorizationStatusNotDetermined` means that the user has not yet responded to the "Allow this app to see my location?" prompt.)
Problem
with the use of BOOL locaService=[CLLocationManager locationServicesEnabled]; it will return boolean value for general GPS service, How can we check the service is on or off for specific our application.