polarofficial / polar-ble-sdk

Repository includes SDK and code examples. More info https://polar.com/en/developers
Other
475 stars 153 forks source link

Verity sense data not available at every streaming session in Android #336

Closed PaolaDF closed 1 year ago

PaolaDF commented 1 year ago

Platform on which you observed the bug:

Device on which you observed the bug:

Describe the bug Using the Android example app in the polar-sdk git repo, I noticed that I can't consistently receive the data at every streaming session. I am usually able to collect data only at the first streaming after I turned the verity sense on. I won't get the data in the next streaming sessions.

Workaround: If I switch the verity sense off and then I turn it on again, the data is now available. Disconnecting and then reconnecting the device does not fix it; switching the smartphone bluetooth off and then on again does not help either.

Comparison with Polar Flow in IOS: I tried using Polar Flow app on an Iphone 8 and it seems there is consistent data streaming at each session, without restarting the verity sense.

By data I mean every verity sense available data type (acc, gyro, mag, ppg, ppi).

Could it depend on Android? Is it a known issue?

How to Reproduce Using the example app (polar-ble-sdk/examples/example-android/androidBleSdkTestApp/) in Android (mine is Honor Lite with Android 9 and bluetooth 4.2):

  1. connect to the verity sense
  2. start the stream
  3. stop the stream
  4. re-start the stream again

Expected behavior At the first streaming the data is available. But if you stop the streaming and then restart it, the data is no longer available (unless you restart the verity sense).

PaolaDF commented 1 year ago

Update

I tested Polar Ble SDK v.4.0.0-beta0 and this issue appears to be solved.

Therefore I am closing it.