You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
@pwespi tried the workaround but the promise directly resolves when the connection is established, so the pairing dialog always occurs afterwards. any other idea?
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
Expected behavior
I expect to succeed the connection, even when pair is not pressed inmediately
Plugin version:
Desktop (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: