Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes- Issues when native location dialog closes after pressing the power button #1351

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions geolocator_apple/ios/Classes/Handlers/PermissionHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@ - (void) requestPermission:(PermissionConfirmation)confirmationHandler
return;
}

if (self.confirmationHandler) {
// Permission request is already running, return immediatly with error
errorHandler(GeolocatorErrorPermissionRequestInProgress,
@"A request for location permissions is already running, please wait for it to complete before doing another request.");
return;
}

self.confirmationHandler = confirmationHandler;
self.errorHandler = errorHandler;
CLLocationManager *locationManager = [self getLocationManager];
Expand Down
2 changes: 1 addition & 1 deletion geolocator_apple/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: geolocator_apple
description: Geolocation Apple plugin for Flutter. This plugin provides the Apple implementation for the geolocator.
repository: https://github.com/baseflow/flutter-geolocator/tree/main/geolocator_apple
issue_tracker: https://github.com/baseflow/flutter-geolocator/issues?q=is%3Aissue+is%3Aopen
version: 2.3.2
version: 2.3.3

environment:
sdk: ">=2.15.0 <4.0.0"
Expand Down