NordicSemiconductor / Android-BLE-Library

A library that makes working with Bluetooth LE on Android a pleasure. Seriously.
BSD 3-Clause "New" or "Revised" License
1.99k stars 414 forks source link

iOS devices automatically disconnects after connecting #503

Open worstkiller opened 1 year ago

worstkiller commented 1 year ago

Hey All,

I'm facing an issue with the BLE connection. So what exactly happening is that some iOS-based clients are trying to connect with Android-based advertisers and we are using this library to do the job and it works in most of our use cases. implementation 'no.nordicsemi.android:ble-ktx:2.6.0' Except for few times when some iOS-based devices are trying to connect and it connects and just after that it disconnects automatically.

So here is the sequence of overridden functions that gets called.

It is able to do the job on repeat but in some cases, it does not does the main job of writing back the data as before writing anything it gets disconnected as soon as it connects.

the issue is that it disconnects just after it connects and it is doing continuously so for some specific devices. But it is working fine for other ios devices and Android devices.

And since we are not getting any error msg or status code so we are not sure what's causing the issue. If you guys are aware of anything related to this issue, please help us or any suggestions that we could do in config or setup from the advertiser side. OR should we look into the client side, please do suggest.

Thanks for library

DmytroBatyuk commented 1 year ago

Observing the same issue. Any ideas how to fix this?

philips77 commented 11 months ago

Hi, sorry for the late response. Did you manage do fix the issue? Do you have any logs which could be useful? They are sent to log(...) method in BleManager.