Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 10 devices need ACCESS_FINE_LOCATION permission for Bluetooth APIs #383

Merged
merged 3 commits into from
Mar 31, 2020
Merged

Android 10 devices need ACCESS_FINE_LOCATION permission for Bluetooth APIs #383

merged 3 commits into from
Mar 31, 2020

Conversation

rickcasson
Copy link
Contributor

@rickcasson rickcasson commented Oct 9, 2019

After specifying that my app targets Android SDK 29, I found that devices running Android 10 were no longer able to scan for other Bluetooth devices. It seems that some privacy changes were made in Android 10 making it necessary to have the ACCESS_FINE_LOCATION permission when using certain Bluetooth APIs.

@NTUTLab321
Copy link

I add uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"
uses-permission android:name="android.permission.BLUETOOTH_ADMIN"
uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"
in AndroidManifest, and flutter_blue works for me.
Don't forget always allow your app have your location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants