cordova-plugin-bluetoothle icon indicating copy to clipboard operation
cordova-plugin-bluetoothle copied to clipboard

Sometimes `discover` just hangs up

Open luruke opened this issue 4 years ago • 3 comments

Sometimes, calling discover on Android just hangs up, without resolving. Without it, it's impossible to write or read...

It's seems completely random, about 30% of the time.

Any idea what can be causing this?

luruke avatar Nov 25 '20 15:11 luruke

Same thing just happend to me but its not really random, it happens every time, no callback returns. Iam using version 6.1.0 on a Pixel 4a with Android 11. I got a stacktrace, maybe it helps:

pastebin

foofel avatar Nov 26 '20 02:11 foofel

I have a solution that seems to work for me atm. The error happens if i try to (re)discover on an established connection. if i close the connection and open it cleanly seems to work.

foofel avatar Nov 27 '20 17:11 foofel

I have no success/error callbacks on android 8 every time. Never yet on 9 or 10.

MojioMS avatar Jun 08 '21 14:06 MojioMS