kakzaki / blue_thermal_printer

Working with thermal printer via bluetooth (Flutter)
MIT License
164 stars 205 forks source link

Location not needed #198

Closed flutter-painter closed 6 months ago

flutter-painter commented 9 months ago

Hi @kakzaki,

The BluetoothAdapter is the one needing this permission. However the android doc says that :

In addition, this requires either the Manifest.permission#ACCESS_FINE_LOCATION permission OR a strong assertion that you will never derive the physical location of the device. You can make this assertion by declaring usesPermissionFlags="neverForLocation" on the relevant manifest tag, but it may restrict the types of Bluetooth devices you can interact with.

So I wonder if removing the location permission and instead declaring usesPermissionFlags="neverForLocation" could do the trick. Have you already tried it ?

Running without asking location has already been mentioned in the following issues :

github-actions[bot] commented 7 months ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.