skip to Main Content

Flutter – Bluetooth does not work when I lock the device's screen

When I lock the screen, bluetooth does not receive data, but it still scans. I use flutter_blue_plus 1.32.4 and flutter_background_service 5.0.5. <uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="neverForLocation" /> <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" /> <!-- legacy for Android 11 or lower --> <uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />…

VIEW QUESTION

Flutter – How to obtain Bluetooth LE Appearance on Android using ScanRecord.getAdvertisingDataMap or is it possible that way?

I'm trying to obtain Appearance data of Bluetooth Low Energy devices in Android (in a Flutter app but seemingly iOS doesn't provide appearance, so I'm focusing on Android). ScanRecord has a https://developer.android.com/reference/android/bluetooth/le/ScanRecord#getAdvertisingDataMap() function, however what can I use to index…

VIEW QUESTION

React native – Android requesting location instead of bluetooth permissions

I am debugging a react native app that absolutely needs bluetooth permissions, however at the moment in android the bluetooth permissions are returning unavailable. I am requesting permissions in my AndroidManifest.xml like this: <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.BLUETOOTH_ADVERTISE" /> <uses-permission…

VIEW QUESTION
Back To Top
Search