Baseflow / Baseflow/flutter-permission-handler
Got permanentlyDenied when location service is disabled
- Dominant language
- Dart
- Stars
- 2.2k
- Forks
- 970
- Avg merge
- 14h 22m
- Merged PRs (30d)
- 2
Description
## 🐛 Bug Report
The `Permission.locationWhenInUse.status` method is returning `permanentlyDenied` if the location service was disabled in iPhone.
On Android it's working fine.
### Expected behavior
I've created a logic in these steps:
- Request permission status
- If is denied, call my request permission method
- My request permission method will check if service is disabled (if has a service)
- If service is disabled, this method will return a specific error and, in some cases, I can request the user to enabled the service, opening the app settings
I believe that returning a `permanentlyDenied` status just for iOS is not correct. Should keep the same behavior for Android/iOS.
### Reproduction steps
1. Disable the iOS location service
2. Request Permission.locationWhenInUse.status
### Configuration
**Version:** 8.1.6
**Platform:**
- [X] :iphone: iOS
- [ ] :robot: Android
Contributor guide
Assessment
This issue has not been assessed yet.