flutter-permission-handler
flutter-permission-handler copied to clipboard
[iOS] Location permission status is not correct
š Bug Report
I request Permission.locationWhenInUse.request() and I choose "Allow Once", the status of locationWhenInUse is granted and the status of locationAlways is permanentlyDenied, and I go to setting page, the location setting status is Ask next time.
Expected behavior
the status of locationWhenInUse and locationAlways are granted
Reproduction steps
- I request location permission with Permission.locationWhenInUse.request()
- I go to the screen that has requested location permission
- The native prompt appears and I choose "Allow Once"
- The status of locationWhenInUse is granted, status of locationAlways is permanentlyDenied and location permission status in setting page is "ASK NEXT TIME"
Configuration
Flutter 2.2.3 iOS 14.5
Version: 8.1.6
Platform:
- [x] :iphone: iOS
- [ ] :robot: Android
same
Same with contacts permission.
same issue
same issue
I have the simmilar problem. When my app asks for permission and I tap "Allow while using app", the status of this permission is "denied". However, it's actually granted.
Oh, Iām sorry, I forgot about this issue. Yes, everything works just fine after I set up the app from scratch.
On 9 Jul 2022, at 10:45, etienneyoufeel @.***> wrote:
Have you set up correctly you ios app ? https://pub.dev/packages/permission_handler#setup https://pub.dev/packages/permission_handler#setup After do that I got not problem.
ā Reply to this email directly, view it on GitHub https://github.com/Baseflow/flutter-permission-handler/issues/741#issuecomment-1179498034, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANVJN3FTYWBNZJZRHZCBTNLVTEUZZANCNFSM5I2OKZ2A. You are receiving this because you commented.
It works exactly as expected when I test this with the example app. Therefore, I'll close this issue. Feel free to reopen the issue when you have new information.
Kind regards,