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

setBluetoothState() causes OS bluetooth permission popup to appear on Huawei phones #463

Open
5 tasks done
egeozer opened this issue Mar 25, 2022 · 1 comment
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

Comments

@egeozer
Copy link

egeozer commented Mar 25, 2022

Bug report

CHECKLIST

  • I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
  • I have checked that no similar issues (open or closed) already exist.

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 CLI version
    • 8.0
  • Cordova platform version
    • android 7.1.4
  • Plugins & versions installed in project (including this plugin)
    -cordova.plugins.diagnostic 4.0.12 "Diagnostic"

Runtime issue

  • Device details
    • Huawei Honor 9 (could be any huawei)
  • OS details
    • Android 10

// Paste any relevant JS/native console output here



Other information:

@dpa99c dpa99c added android Relates to Android platform runtime issue An issue related to app runtime labels Jul 29, 2022
@dpa99c
Copy link
Owner

dpa99c commented Jul 29, 2022

A major version [email protected] has just been released to npm.
Please re-test with this new version.
I don't have a physical Huawei device to test this scenario and while browserstack.com does, there is limited access to device features including the ability to turn on Bluetooth to test this.

@dpa99c dpa99c added the awaiting response If no response, issue will be closed label Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Relates to Android platform awaiting response If no response, issue will be closed runtime issue An issue related to app runtime
Projects
None yet
Development

No branches or pull requests

2 participants