Hallo,
I've been working on a companion app for a BLE device and I have been experiencing a number of issues with device crashes, so the device restarting, not the standard CIQ error.
The device I am using for testing is an Edge 530. The issues happen both when the app is sideloaded as an app or a widget, but never occur in the simulator (not sure if you can even have that crash).
These issues mainly occur when leaving the app/widget shortly after having initiated pairing (device = Ble.pairDevice(result)), and happens both if the connection has been made and if not (onConnectedStateChanged( device, state ) triggered), but can also occur when changing quickly between the scanning and device views.
This also happens when using the Thingy 52 app, with some minor changes to run on the Edge 530 (exchanging the bitmaps with smaller ones) and changing the UUIDs to something that will find our devices.
So my question is first of all, are there known issues with the BLE that can cause device crashes (specifically on the Edge 530), and is there any way to debug this sort of error?
All the best, Jonas