Skip to content

Commit

Permalink
Fixes #951 loosing location updates (consider pausesLocationUpdatesAu…
Browse files Browse the repository at this point in the history
…tomatically)
  • Loading branch information
Sigi committed Sep 11, 2024
1 parent c5b523c commit 10c114e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/location/darwin/Classes/LocationPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ -(void)initLocation {
self.clLocationManager = [[CLLocationManager alloc] init];
self.clLocationManager.delegate = self;
self.clLocationManager.desiredAccuracy = kCLLocationAccuracyBest;
self.clLocationManager.pausesLocationUpdatesAutomatically = NO;
}
}

Expand Down
1 change: 1 addition & 0 deletions packages/location/ios/Classes/LocationPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ - (void)initLocation {
self.clLocationManager = [[CLLocationManager alloc] init];
self.clLocationManager.delegate = self;
self.clLocationManager.desiredAccuracy = kCLLocationAccuracyBest;
self.clLocationManager.pausesLocationUpdatesAutomatically = NO;
}
}

Expand Down
1 change: 1 addition & 0 deletions packages/location/macos/Classes/LocationPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ -(void)initLocation {
self.clLocationManager = [[CLLocationManager alloc] init];
self.clLocationManager.delegate = self;
self.clLocationManager.desiredAccuracy = kCLLocationAccuracyBest;
self.clLocationManager.pausesLocationUpdatesAutomatically = NO;
}
}

Expand Down

0 comments on commit 10c114e

Please sign in to comment.