Baseflow / Baseflow/flutter-permission-handler
About Bluetooth switch and authorization
- Dominant language
- Dart
- Stars
- 2.2k
- Forks
- 970
- Avg merge
- 14h 22m
- Merged PRs (30d)
- 2
Description
```
Map statuses = await [
Permission.bluetooth,
Permission.bluetoothScan,
Permission.bluetoothAdvertise,
Permission.bluetoothConnect,
].request();
```
When I request bluetooth permission,
On iOS, if the Bluetooth switch is turned off or the Bluetooth permission is denied, PermissionStatus.permanentlyDenied will be returned
On Android, if the Bluetooth switch is turned off, PermissionStatus.permanentlyDenied will be returned
I have a few questions
1. I want to know whether the Bluetooth switch is turned on. At present, I can’t distinguish whether it is turned off on Android or the app does not have Bluetooth authorization. What should I do?
2. The positioning function, how do I get whether the positioning is off, or the app does not have the positioning permission
3. When using Bluetooth on Android, do I have to request location permission at the same time? , I see your official example is like this
Looking forward to your reply. thanks
Contributor guide
Assessment
This issue has not been assessed yet.