Bluetooth BLE. How to check if a phone's Bluetooth is turned on before Thunkable BLE Scan

Hi,
I have an app that connects BLE successfully from IOS and Android to an ESP32.
Everything works well.
The only problem is when the phone’s Bluetooth is switched off.
A BLE Scan instantly crashes the IOS phone but successfully catches the error on Android.
Is there a method to determine a phone’s Bluetooth ON/OFF status before performing a BLE Scan?

Hi tonykellymailzqnnbv, welcome to Thunkable! :tada:

Be sure to check out How to ask Great Questions v2.0, the Community Guidelines, and our Getting Started Guide to make the best of your Thunkable Community experience!

This is unfortunately not something we can do natively yet with the Blocks. You may be able to do a bit of a work-around by checking for the RSSI value via a scan and if that is equal to zero (effectively saying it is off), then abort the attempt to connect and do something else.