don / cordova-plugin-rfduino

Cordova (PhoneGap) plugin for RFduino
Other
46 stars 16 forks source link

failure callbacks on iOS 8.2 although everything appears to work fine. #25

Closed batman11111 closed 9 years ago

batman11111 commented 9 years ago

Hi Don, I'm am getting the following failure callbacks:

with a 10 second discovery -- I get 2 failure callbacks -- although it does discover all the devices the way it is supposed to.

While connecting to device -- I get 2 failure callbacks -- although it will connect to the device. My code retries connecting 1 time if the failure call back is called and then it stops trying to connect. What is happening is it retries 1 time, failure callback is called both times... and then it ends up connecting within 1 second or less.

onData failure callback is called 1 time -- although it appears to receive data from the rfduino without a problem.

Summary: The above results happened 100% of the time with over 20 tries. Everything seems to work fine, however, failure callbacks are being called.

I am using phonegap build 3.7 with an iphone 5 iOS 8.2.

I have tried the same code on an android device and no failure callbacks are called.

batman11111 commented 9 years ago

UPDATE: Tried it again using PG Build 3.6.3 - Everything works fine. Appears to be an issue with PG Build 3.7

don commented 9 years ago

This is a problem with the newer Cordova iOS code. v0.1.3 of the plugin works with newer versions of Cordova. I'm not sure if PhoneGap Build is taking updates to plugins since you can now install plugins directly from plugins.cordova.io.