Skip to content

Commit

Permalink
#55 Possible fix for getting unwanted hundreds of point acquisitions …
Browse files Browse the repository at this point in the history
…on iOS;
  • Loading branch information
mehdok committed Jun 3, 2020
1 parent d71426d commit 2fb53e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/Classes/BackgroundLocatorPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ - (BOOL)application:(UIApplication *)application

#pragma mark LocationManagerDelegate Methods
- (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations {
for (int i = 0; i < locations.count; i++) {
CLLocation *location = [locations objectAtIndex:i];
CLLocation *location = [locations firstObject];
if (location != nil) {
NSTimeInterval timeInSeconds = [location.timestamp timeIntervalSince1970];
NSDictionary<NSString*,NSNumber*>* locationMap = @{
ARG_LATITUDE: @(location.coordinate.latitude),
Expand Down

0 comments on commit 2fb53e7

Please sign in to comment.