Using BLE (latest version) and also tested Ankes extension "LocationStatus1" I found that including a BLE write caused the apk version to give a runtime error on the phone: "Not connected to a Bluetooth low energy device", with a button "End Application" . Ending the application only puts it into the background and I can open it from there again and it works OK. Sometimes I can click on the screen somewhere else and it comes right. I tried to farm out the BLE call to a function with same result.
Disabling the below block fixes the issue. I have done a lot of testing on the reliability of the connection without the BLE call in the timer and it worked beautifully (thanks developers).
The culprit as I understand it at the moment, ignore the tim I know its unnecessary here:
Only tested on Xiaomi Redmi Note 9 Pro Phone. I test Samsung Phone next week