randdusing / cordova-plugin-bluetoothle

Bluetooth Low Energy Phonegap Plugin
804 stars 353 forks source link

Subscribe Success Callback Method call only once #344

Open Rohithastak opened 8 years ago

Rohithastak commented 8 years ago

Hello , when i am calling bluetoothle.subscribe(objHR.subscribeSuccess, objHR.subscribeError, paramsObj) in android this only gives me result.status == "subscribed" and do nothing after that, it doesnot give result "subscribedResult". Subscribe callback method is called only once. please share what to do next.

randdusing commented 8 years ago

What type of BLE device, phone/tablet, Android version, etc? There's a PR for changing the subscription code that I haven't fully evaluated, but you may want to check it out to see if it works.

Rohithastak commented 8 years ago

BLE device : Wahoo's Heart Rate Monitor(TICKER B3E4) Phone : Samsung galaxy g7 Android version : 6.0

randdusing commented 8 years ago

Try out that PR. It works for the requestor, and I'm hoping to review it within the next week or so. If it works for you, that will give me more confidence!

phice commented 7 years ago

same for me, by setting "clearCache": false I can get the callback. BLE device: Wahoo TICKR X 060D Android Version: 5.1.1 Samsung S5 mini device