Page 1 of 1
evothings.ble.readAllServiceData not working properly on iOS
Posted: 18:39, 05 Apr 2015
by jose
Hi guys and thank you for your plugin.
We are using it for an app which relays on Appgyver Supersonic. Scanning and connection seems to work great but there is a problem when we try to call readAllServiceData(). It won't return nothing unless we stop the script for a few seconds with a breakpoint before servicesCallbackFun() is called.
It seems to work well on Android but nothing is firing ( not the win method neither the fail one ) on this readAllServiceData() method
Do you know about that? Have any of you experienced something similar?
I am using an iPhone 6 with iOS 8.3 right now.
Thanks!
Re: evothings.ble.readAllServiceData not working properly on iOS
Posted: 10:29, 07 Apr 2015
by Fredrik
readAllServiceData() is used, among other places, in our example "ble-discovery". I am running it now on an iPhone6+ with iOS 8.2, without any problems.
iOS 8.3 is still in beta. It may have bugs. We cannot support it until Apple releases the final version.
Please try the example "ble-discovery" and see if that works for you.
Re: evothings.ble.readAllServiceData not working properly on iOS
Posted: 09:37, 10 Apr 2015
by jose
So, 8.3 is finally out of the box. Will this be supported? Have you tried that? We just tested ble-discovery with the new firmware but it is not working.
Thanks
Re: evothings.ble.readAllServiceData not working properly on iOS
Posted: 09:56, 10 Apr 2015
by Fredrik
I'm installing iOS 8.3 on an iPhone 5c as I write, but our internet connection is bad at the moment and it will take some time.
Have you tried any iOS version between 7.0 and 8.2?
Re: evothings.ble.readAllServiceData not working properly on iOS
Posted: 10:26, 10 Apr 2015
by jose
Sure Fredrik, we previously tried with 8.2 on the same iPhone 6 but not the ble-discovery app, our app with your plugin but doesn't seemed to work either
Re: evothings.ble.readAllServiceData not working properly on iOS
Posted: 10:37, 10 Apr 2015
by Fredrik
It might be the BLE device itself that does something strange then. Can you try reading the services of something else? Maybe a TI SensorTag or an Arduino BLE shield, or a programmable iBeacon?
Re: evothings.ble.readAllServiceData not working properly on iOS
Posted: 14:56, 10 Apr 2015
by Fredrik
The update finally finished. BLE Discovery works normally now, on our iPhone 5c with iOS 8.3.
It should be noted for debugging purposes that readAllServiceData() is a convenience wrapper function around the more low-level functions services() characteristics() and descriptors().
You can try calling services() for starters. Maybe that'll work better.