capacitor-community / bluetooth-le

Capacitor plugin for Bluetooth Low Energy
MIT License
284 stars 86 forks source link

iOS Cannot Reconnect on app restart #609

Closed superami-code closed 9 months ago

superami-code commented 10 months ago

I am developing an Angular/Capacitor App and when the app hot reloads while connected, I can't reconnect to the BLE device. I've tried disconnecting from the device if connect doesn't work. The disconnect it successful, but connection still doesn't work. Power cycling the BLE device doesn't work either. The only way to reconnect is to kill and restart the app or disconnect the device in iOS Settings.

This also seems to happen in an early TestFlight build, where the user returned to the app after some time had passed and they had to kill the app before they could reconnect to the BLE device.

Is there some way to completely reset the interface?

@capacitor-community/bluetooth-le 3.1.1 @capacitor/core 5.0.3 @angular/core 17.06

pwespi commented 10 months ago

Have you tried using getConnectedDevices?

github-actions[bot] commented 9 months ago

It looks like this issue didn't get the information it needed, so I'll close it for now. If I made a mistake, sorry! I am just a bot.

Have a great day! Capacitor Community Bot 💙