flutter-permission-handler
flutter-permission-handler copied to clipboard
[Question]: Android emulator bug with BODY_SENSORS
Please check the following before submitting a new issue.
- [x] I have searched the existing issues.
- [x] I have carefully read the documentation.
Please select for which platform(s) you need help
- [x] Android
- [ ] iOS
- [ ] Windows
Your question
Hello,
I am using this package for BODY_SENSORS permissions, I used version 11.3.1 with emulator and it worked fine. Now when I updated to latest version 12.0.1 the permission popup doesn't show any more and the status is always returned as "denied".
The code I am using:
await Permission.sensors.request().then((value) async {
if (value.isGranted) {
...
} else {
...
}
});
It always go into else without showing dialog. On the emulator I am using Android 16 with API 36, flutter 3.35.7 and Dart 3.9.2
Can someone please direct me into any direction that might help.
Version
12.0.1