Commit b002aacc authored by Chris Scott's avatar Chris Scott

Migrate away from deprecated method willUpdateFromLocation to willUpdateLocations

parent d589111e
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
} }
} }
-(void) locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation -(void) locationManager:(CLLocationManager *)manager didUpdateLocations:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
{ {
NSLog(@"CDVBackgroundGeoLocation didUpdateLocation"); NSLog(@"CDVBackgroundGeoLocation didUpdateLocation");
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
// The omitted code should determine whether to reject the location update for being too // The omitted code should determine whether to reject the location update for being too
// old, too close to the previous one, too inaccurate and so forth according to your own // old, too close to the previous one, too inaccurate and so forth according to your own
// application design. // application design.
[self.locationCache addObject:newLocation]; [self.locationCache addObjectsFromArray:locations];
[self sync]; [self sync];
} }
......
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