# \[Solved\] Can I use BLE on iOS?

**URL:** <https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834>\
**Category:** Questions about Thunkable X\
**Tags:** solved\
**Created:** [July 5, 2019, 11:45am UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834 "2019-07-05T11:45:02Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![kufirre](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kufirre/32/45596_2.png) [@kufirre](https://community.thunkable.com/u/kufirre)\
**Post date:** [October 17, 2019, 10:28am UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/23 "2019-10-17T10:28:02Z")

</div>

Yes, I use the same “characteristic, but receive doesn’t work for iOS. There might be an issue with this block. I wish the Thunkable X team can look at this for iOS”

---

<div class="post-metadata">

**Author:** ![MartinP](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@MartinP](https://community.thunkable.com/u/MartinP)\
**Post date:** [October 17, 2019, 1:21pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/24 "2019-10-17T13:21:05Z")

</div>

> [@kylizedewqc8z](#):
>
> I simply “Connect to Device Name”

In my case it’s not working: I receive “No device is connected” when I try to connect using Device Name.

---

<div class="post-metadata">

**Author:** ![neuheisser](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@neuheisser](https://community.thunkable.com/u/neuheisser)\
**Post date:** [October 17, 2019, 1:34pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/25 "2019-10-17T13:34:41Z")

</div>

Martin, are you sure you are using compiled app, not the preview?

---

<div class="post-metadata">

**Author:** ![MartinP](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@MartinP](https://community.thunkable.com/u/MartinP)\
**Post date:** [October 17, 2019, 1:48pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/26 "2019-10-17T13:48:50Z")

</div>

Sure! I enabled my app in Device Management, so it’s definately not the preview. BTW I can connect via Device UUID.  
When I use Device name I receive “There is no device with name “MyDeviceName”. Please, try it again.”

---

<div class="post-metadata">

**Author:** ![neuheisser](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@neuheisser](https://community.thunkable.com/u/neuheisser)\
**Post date:** [October 17, 2019, 3:05pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/27 "2019-10-17T15:05:33Z")

</div>

Sometimes things got somehow “stuck”, and my app cannot communicate with the device. Check the connection to your device with eBeacon, find it on the AppStore. Connect with “Not JAALEE Beacon” option and see if you can see it. Also you have to have location enabled, did you do that?

---

<div class="post-metadata">

**Author:** ![MartinP](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@MartinP](https://community.thunkable.com/u/MartinP)\
**Post date:** [October 17, 2019, 4:28pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/28 "2019-10-17T16:28:14Z")

</div>

Yes, I can communicate to my BLE device via eBeacon - it works flawlessly

Fixed it. Extremely weird bug:

When Location is Disabled for iOS app I can’t connect to my BLE Device.

When Location is Enabled for iOS app I can connect to my BLE Device only when I close eBeacon or similar software.

But I can connect to BLE Device via UUID when Location is Disabled for iOS app or I have eBeacon or similar software running in background. 🤪

---

<div class="post-metadata">

**Author:** ![samjikassim](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@samjikassim](https://community.thunkable.com/u/samjikassim)\
**Post date:** [November 21, 2019, 11:05am UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/29 "2019-11-21T11:05:53Z")

</div>

i am so terribly waiting for this , i am stuck with BLE receive as well

---

<div class="post-metadata">

**Author:** ![neuheisser](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@neuheisser](https://community.thunkable.com/u/neuheisser)\
**Post date:** [November 21, 2019, 12:14pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/30 "2019-11-21T12:14:06Z")

</div>

What’s wrong? This module really works good, it gets stuck only if you are changing boards using same code, etc… Nothing wrong with the module itself!

---

<div class="post-metadata">

**Author:** ![samjikassim](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@samjikassim](https://community.thunkable.com/u/samjikassim)\
**Post date:** [November 21, 2019, 1:37pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/31 "2019-11-21T13:37:40Z")

</div>

BLE receive block is not working everything else works

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [November 21, 2019, 6:14pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/32 "2019-11-21T18:14:55Z")

</div>

You’re using iOS, is that correct @samjikassim?

---

<div class="post-metadata">

**Author:** ![neuheisser](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@neuheisser](https://community.thunkable.com/u/neuheisser)\
**Post date:** [November 22, 2019, 1:57pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/33 "2019-11-22T13:57:21Z")

</div>

Well, I have tried to use BLE receive too and I came to the same conclusion. I can transmit, but cannot receive. It happens both on Android and iOS.  
I’m getting this error: “Can’t read the characteristic provided”.  
When I try to read data with eBeacon, it works. I’m reading the message that I’m sending out of my MCU perfectly.  
I’m using ESP32 and with these tutorials and library examples.

> **[ESP32 BLE Tutorials | How to use ESP32 with BLE](https://iotbyhvm.ooo/esp32-ble-tutorials/)**
>
> In the post we learn some ESP32 BLE Tutorials. We will use Arduino IDE for tutorials, Visit this for Arduino IDE : Arduino IDE | Arduino

---

<div class="post-metadata">

**Author:** ![samjikassim](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@samjikassim](https://community.thunkable.com/u/samjikassim)\
**Post date:** [November 22, 2019, 7:27pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/34 "2019-11-22T19:27:20Z")

</div>

i created cross platform app, so it won’t work on android as well on iOS, i can only transmit ,

Receive block fails, when i try to capture and read the output error it says ‘operation is rejected’ , while output data is blank

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [November 23, 2019, 1:00am UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/35 "2019-11-23T01:00:11Z")

</div>

@samjikassim are you using the location sensor in your app as well?

---

<div class="post-metadata">

**Author:** ![samjikassim](https://avatars.discourse-cdn.com/v4/letter/s/f4b2a3/32.png) [@samjikassim](https://community.thunkable.com/u/samjikassim)\
**Post date:** [November 23, 2019, 4:01am UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/38 "2019-11-23T04:01:14Z")

</div>

no i don’t

besides here is a link to the app

[https://x.thunkable.com/projects/5c5db495970c04f5171fe126/Screen1/blocks](https://x.thunkable.com/projects/5c5db495970c04f5171fe126/Screen1/blocks)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [December 22, 2019, 11:06pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/39 "2019-12-22T23:06:29Z")

</div>

@samjikassim,

You need the use the location sensor (and have location turned on on your device) in order to get the BLE component working.  
Hope that helps

---

<div class="post-metadata">

**Author:** ![SR71](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@SR71](https://community.thunkable.com/u/SR71)\
**Post date:** [January 8, 2020, 6:41pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/40 "2020-01-08T18:41:06Z")

</div>

This module is a mess.

When compared with the one provided in App Inventor2 is simply…discouraging.

List of defect (as seen on Android):

1. the scan operation is slow and very unreliable
2. if BT is turned off, an error is returned (instead of a popup to the user)
3. no event management!
4. no Disconnect method !
5. no way to specify service\_id
6. no support for service advertisement
7. no parameters configurable

again, take a look at the original MIT one, and you will see the difference.  
Please, consider to improve it.

I was here for the iOS support, but the BLE support is too limited.

---

<div class="post-metadata">

**Author:** ![ChicagoFred](https://avatars.discourse-cdn.com/v4/letter/c/8e7dd6/32.png) [@ChicagoFred](https://community.thunkable.com/u/ChicagoFred)\
**Post date:** [May 27, 2020, 8:44pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/41 "2020-05-27T20:44:24Z")

</div>

I wanted to avoid Blynk and try to control Arduino Nano with HC-06/05 and data-log. With BLE, you can’t send/receive long strings. It wasn’t meant for that. It was meant for some device to last a long time on a tiny button battery and send/receive short bursts. BT 4.0 sans BLE is a better option.

Quite honestly, Thunkable will have to rethink this whole thing. Connecting iOS or Andriod to remote micro-controllers is a big thing and getting bigger. Thunkable may be missing the boat soon.

---

<div class="post-metadata">

**Author:** ![eddie.rebehy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eddie.rebehy/32/67993_2.png) [@eddie.rebehy](https://community.thunkable.com/u/eddie.rebehy)\
**Post date:** [May 27, 2020, 9:06pm UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/42 "2020-05-27T21:06:19Z")

</div>

Hi @ChicagoFred

I am limiting MTU to 20 bytes to remain compatible with older devices. I break my string up into packets. So far I am having no issues with strings of up to 10kb. I have set up handshaking and end to end encryption. My app is not public but I could post an excerpt of the BLE blocks if you need it. Haven’t tested on IOS yet.

---

<div class="post-metadata">

**Author:** ![ChicagoFred](https://avatars.discourse-cdn.com/v4/letter/c/8e7dd6/32.png) [@ChicagoFred](https://community.thunkable.com/u/ChicagoFred)\
**Post date:** [May 28, 2020, 4:31am UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/43 "2020-05-28T04:31:41Z")

</div>

Eddie, thanks for the replay. I was just going to play with Cayenne IoT when I read your post. It would be great is you could post it.

---

<div class="post-metadata">

**Author:** ![eddie.rebehy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eddie.rebehy/32/67993_2.png) [@eddie.rebehy](https://community.thunkable.com/u/eddie.rebehy)\
**Post date:** [May 28, 2020, 6:06am UTC](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834/44 "2020-05-28T06:06:12Z")

</div>

@ChicagoFred

[https://x.thunkable.com/projectPage/5ecf47913ed5972f7f6ba1fb](https://x.thunkable.com/projectPage/5ecf47913ed5972f7f6ba1fb)

I am definitely not an expert and welcome any improvements by thunker obeservers. This public app will be broken but I hope this helps. Try to understand the blocks rather than relying on copying what I have done. The two BLE functions should be self explanatory for segmenting the string and communication with your bespoke device. I have written the receiving BLE code in C for the esp32 (Arduino IDE) if that helps you. Happy to answer any questions but I don’t know if it is appropriate to hijack this thread. PM me if you prefer or open a new thread 🙂

[Previous page](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834.md?page=1)

[Next page](https://community.thunkable.com/t/solved-can-i-use-ble-on-ios/132834.md?page=3)
