Android: failing to connect when native pair modal not pressed in time
simonvnk opened this issue · 2 comments
simonvnk commented
Describe the bug
Whenever I call the BleClient.Connect function, this will trigger a native modal on an android device where you need to press 'pair' or 'deny'. Whenever the user takes too long to press pair, the connect method will trigger its disconnected function and the rest of my flow fails. This is not what I expect, shouldn't the connect method have some type of waiting mechanism for this modal?
To Reproduce
- Call BleClient.connect()
- Wait a couple of seconds
- Press pair
Expected behavior
I expect to succeed the connection, even when pair is not pressed inmediately
Plugin version:
- @capacitor-community/bluetooth-le: 3.1.0
Desktop (please complete the following information):
- OS: Android
Smartphone (please complete the following information):
- Device: One plus 10pro
- OS: Android version 14