I struggled with requesting the location service of my iPhone app. If the user says "Do not allow", I am stuck in my "this application needs location services to work" ...
All attempts to re-apply for location services have proven futile, as several stacks attest.
Then I read that the only way to re-enable location services was to redirect the user to the location service settings using this:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=LOCATION_SERVICES"]];
But even this does not work (iPhone 4 and 4S, as on 5.1)
Is there no other way besides telling the user to go to the settings and then navigate it? It seems like it is so cool awkward.
source
share