# BLE Crash When Published on Android

**URL:** https://community.thunkable.com/t/ble-crash-when-published-on-android/2033789
**Category:** Issues / Bugs
**Created:** [September 8, 2022, 10:32pm UTC](https://community.thunkable.com/t/ble-crash-when-published-on-android/2033789 "2022-09-08T22:32:50Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![blakermartin27ea49x6](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@blakermartin27ea49x6](https://community.thunkable.com/u/blakermartin27ea49x6)
#### Post date: [September 8, 2022, 10:32pm UTC](https://community.thunkable.com/t/ble-crash-when-published-on-android/2033789/1 "2022-09-08T22:32:50Z")

</div>

Hi Thunkable,

I recently published my app to the Google Play Store. When I download it and run it, it crashes when I hit the “Connect” button which initiates the BLE Scan. The app works well in the test environment (Thunkable Live App). What is the issue?

-Blake

---

<div class="post-metadata">

### Author: ![yoannrky4dd](https://avatars.discourse-cdn.com/v4/letter/y/b9e5f3/32.png) [@yoannrky4dd](https://community.thunkable.com/u/yoannrky4dd)
#### Post date: [October 10, 2022, 12:30pm UTC](https://community.thunkable.com/t/ble-crash-when-published-on-android/2033789/2 "2022-10-10T12:30:01Z")

</div>

Hi,

In my case the app doesn’t crash, but the scan function is not working anymore, so my process is just blocked.  
Here is the result from a debug tool I made which just scan and prompt the devices name of the surrounding devices:

 ![Screenshot_20221010-141215_Debug BLE](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/9/096f3df45ddcd2357e220caeb8232a439e247356.jpeg)

It was working perfectly until very recently, not since I changed to a new and more recent phone. I’m now on Android 12 on a Galaxy S22.

Yoann

---

<div class="post-metadata">

### Author: ![brianl](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@brianl](https://community.thunkable.com/u/brianl)
#### Post date: [October 13, 2022, 6:03pm UTC](https://community.thunkable.com/t/ble-crash-when-published-on-android/2033789/3 "2022-10-13T18:03:09Z")

</div>

Hi,  
Sorry you are experience these issues. We recently fixed errors revolving around bluetooth.  
If this is a pre-existing app, it might not have received our new fixes, so it might require a fresh download.  
If this is on Thunkable live app, please update the live app.  
If these do not fix the error, please let me know and I will try to respond promptly.

---

<div class="post-metadata">

### Author: ![yoannrky4dd](https://avatars.discourse-cdn.com/v4/letter/y/b9e5f3/32.png) [@yoannrky4dd](https://community.thunkable.com/u/yoannrky4dd)
#### Post date: [October 14, 2022, 8:52am UTC](https://community.thunkable.com/t/ble-crash-when-published-on-android/2033789/4 "2022-10-14T08:52:16Z")

</div>

Hi Brianl,

I saw the fix in the release notes indeed, but we did the tests after that and built a new APK each time, so it didn’t fix the problem.  
It doesn’t seem to be related only to Android 12, as I’m successfully seeing and connecting to my device with a Pixel 3 on Android 12, but with a Redmi 10 for exemple, I can’t see my device when scanning, even if I can see it with nRF connect application. It’s really weird.

Yoann

---

<div class="post-metadata">

### Author: ![brianl](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@brianl](https://community.thunkable.com/u/brianl)
#### Post date: [October 14, 2022, 7:13pm UTC](https://community.thunkable.com/t/ble-crash-when-published-on-android/2033789/5 "2022-10-14T19:13:06Z")

</div>

Hi Yoann,  
That is strange indeed. Could you either dm your project link or if you are comfortable sharing it here, that is okay too.  
Thanks,  
Brian

---

<div class="post-metadata">

### Author: ![yoannrky4dd](https://avatars.discourse-cdn.com/v4/letter/y/b9e5f3/32.png) [@yoannrky4dd](https://community.thunkable.com/u/yoannrky4dd)
#### Post date: [October 17, 2022, 8:16am UTC](https://community.thunkable.com/t/ble-crash-when-published-on-android/2033789/6 "2022-10-17T08:16:01Z")

</div>

Hi Brian,

I just sent you the link of my project in DM. But I had the exact same behaviour on a simpler app that I use as a debug tool: [Thunkable](https://x.thunkable.com/projects/609cf496655cb40011814b27/9c8016d2-29fa-4da7-b80a-3a5d2853045d/designer)

Best regards,

Yoann

---

<div class="post-metadata">

### Author: ![brianl](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@brianl](https://community.thunkable.com/u/brianl)
#### Post date: [October 17, 2022, 8:54pm UTC](https://community.thunkable.com/t/ble-crash-when-published-on-android/2033789/7 "2022-10-17T20:54:19Z")

</div>

What version of the Thunkable Live App are you using when you use the Debug Tool?

---

<div class="post-metadata">

### Author: ![yoannrky4dd](https://avatars.discourse-cdn.com/v4/letter/y/b9e5f3/32.png) [@yoannrky4dd](https://community.thunkable.com/u/yoannrky4dd)
#### Post date: [October 18, 2022, 4:35pm UTC](https://community.thunkable.com/t/ble-crash-when-published-on-android/2033789/8 "2022-10-18T16:35:50Z")

</div>

The last one, I downloaded it when I did my tests.

---

<div class="post-metadata">

### Author: ![brianl](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@brianl](https://community.thunkable.com/u/brianl)
#### Post date: [October 18, 2022, 8:43pm UTC](https://community.thunkable.com/t/ble-crash-when-published-on-android/2033789/9 "2022-10-18T20:43:41Z")

</div>

I can see that you do print out the error when scan doesn’t work, which is really nice. What error does it tell you if any? I ran it and it seems to work for me so I’m wondering what you see.

---

<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: [November 8, 2024, 1:12pm UTC](https://community.thunkable.com/t/ble-crash-when-published-on-android/2033789/10 "2024-11-08T13:12:54Z")

</div>


