Commit 740c2d96 authored by Chris Scott's avatar Chris Scott

Incorrect autorization model

parent a42abe87
......@@ -710,7 +710,7 @@
- (void) startUpdatingLocation
{
SEL requestSelector = NSSelectorFromString(@"requestWhenInUseAuthorization");
SEL requestSelector = NSSelectorFromString(@"requestAlwaysAuthorization");
if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined && [locationManager respondsToSelector:requestSelector]) {
((void (*)(id, SEL))[locationManager methodForSelector:requestSelector])(locationManager, requestSelector);
[locationManager startUpdatingLocation];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment