flutter-permission-plugins
flutter-permission-plugins copied to clipboard
On iOS 13, location always is incorrectly returned as granted when you only have when in use
trafficstars
🐛 Bug Report
NOTE: Yes I saw the closed issue where it was stated this was fixed and yes I'm using the hotfix location_permissions: 3.0.0+1
Expected behavior
Upon asking for location permissions and the user taps "when in use", location always is not yet granted.
Reproduction steps
- Use iOS 13 device
- Prompt for location permissions and select "when in use"
- Check if permission level for location always
This returns true:
static Future<bool> hasLocationAlwaysPermission() async {
PermissionStatus permission = await LocationPermissions()
.checkPermissionStatus(level: LocationPermissionLevel.locationAlways);
return permission == PermissionStatus.granted;
}

Platform:
- [x] :iphone: iOS 13 (not 12 and lower, seems to work)
- [ ] :robot: Android (all android devices tested work as well)
:+1: to this, also encountering this bug on iOS 13
Hello, just want to share that my current workaround is using different package made by Baselow called permission_handler which currently seem to return the correct permission status for location always.