# \[SOLVED\] Bluetooth App crashes without warning

**URL:** <https://community.thunkable.com/t/solved-bluetooth-app-crashes-without-warning/2873492>\
**Category:** Issues / Bugs\
**Tags:** design\
**Created:** [March 4, 2024, 5:34pm UTC](https://community.thunkable.com/t/solved-bluetooth-app-crashes-without-warning/2873492 "2024-03-04T17:34:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thunkable28](https://avatars.discourse-cdn.com/v4/letter/t/a9a28c/32.png) [@thunkable28](https://community.thunkable.com/u/thunkable28)\
**Post date:** [March 4, 2024, 5:34pm UTC](https://community.thunkable.com/t/solved-bluetooth-app-crashes-without-warning/2873492/1 "2024-03-04T17:34:16Z")

</div>

I am currently developing a thunkable App that uses BLE. However, I found that if the BLE on the iPhone is not enable, and the user starts the BLE scan process, the APP simply goes blank without any warning that BLE should be enabled or is disabled on the device.

 ![IMG_2497](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/5/05a423100e50ad11a9b3b27dd58ba34d23b1c8e6.jpeg)  
 ![IMG_2498](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/3/73d4e3107ae1c1bd0841e2c8291b804f5a80c9ee.png)

Isn’t this something the thunkable appp should warn or the user has to implement this warning to prevent app crashes like this one?

What would be the best approach here to improve the user experience?

Thanks

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [March 6, 2024, 2:34pm UTC](https://community.thunkable.com/t/solved-bluetooth-app-crashes-without-warning/2873492/2 "2024-03-06T14:34:35Z")

</div>

Hello @thunkable28 👋  
What do you mean the app is crashing?  
Here is an example of how the blocks must be to  
work properly  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/5/859533566ebe0a24915ad996b80d72c911d1ac79.png)

 ![image0 (18)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/b/9b09a47524fea1611882011406e8225e55cc353c.png)

---

<div class="post-metadata">

**Author:** ![thunkable28](https://avatars.discourse-cdn.com/v4/letter/t/a9a28c/32.png) [@thunkable28](https://community.thunkable.com/u/thunkable28)\
**Post date:** [March 6, 2024, 6:11pm UTC](https://community.thunkable.com/t/solved-bluetooth-app-crashes-without-warning/2873492/3 "2024-03-06T18:11:48Z")

</div>

Hi @ioannis,  
Ok, I got this sorted out.  
I found that if I did not handle the error, then the App would go blank if BLE is not turned on.  
The following worked and the App is happy now and is able to display the BLE error.

 ![Screenshot 2024-03-06 at 12.10.40 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/3/431cfb5afac6d5c00bcff012c9eb249fd48a865a.png)

Thanks for pointing this out.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [March 6, 2024, 7:06pm UTC](https://community.thunkable.com/t/solved-bluetooth-app-crashes-without-warning/2873492/4 "2024-03-06T19:06:52Z")

</div>


