setBluetoothState() causes OS bluetooth permission popup to appear on Huawei phones #463
Open
5 tasks done
Labels
android
Relates to Android platform
awaiting response
If no response, issue will be closed
runtime issue
An issue related to app runtime
Bug report
CHECKLIST
I have read the issue reporting guidelines
I confirm this is a suspected bug or issue that will affect other users
Current behavior:
setBluetoothState() causes OS bluetooth permission popup to appear on Huawei phones. This bug was already opened (#352), and got closed due to not being reproducible. However to reproduce, you absolutely need a Huawei phone running Android 9+
Expected behavior:
setBluetoothState() should probably wait for user confirmation before calling the success callback, and call errorCallback if user denies permission to change bluetooth state.
Steps to reproduce:
1)call setBluetoothState(true)
2)OS shows popup asking the user to confirm if bluetooth state should be changed.
Screenshots
Environment information
-cordova.plugins.diagnostic 4.0.12 "Diagnostic"
Runtime issue
Other information:
The text was updated successfully, but these errors were encountered: