Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling getAvailableOnlineStreamDataTypes throws PolarBleSdk.PolarErrors.notificationNotEnabled with the H9 #359

Open
3 of 10 tasks
Rexios80 opened this issue Apr 7, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@Rexios80
Copy link

Rexios80 commented Apr 7, 2023

Platform on which you observed the bug:

  • Android
  • iOS
  • Other
  • Platform is not relevant for this bug

Device on which you observed the bug:

  • Polar OH1
  • Polar Verity Sense
  • Polar H10
  • Polar H9
  • Other
  • Device is not relevant for this bug

Describe the bug
Getting PolarBleSdk.PolarErrors.notificationNotEnabled when calling getAvailableOnlineStreamDataTypes

This is confirmed working for the H10 and Verity

How to Reproduce
Call getAvailableOnlineStreamDataTypes for a Polar H9

Expected behavior
It works like with the H10 and Verity

Screenshots and logs
Screenshot 2023-04-07 at 11 39 31 AM

Additional Information
Not sure how useful this is, but here's the code for the plugin: https://github.com/Rexios80/polar
The example app in that repo can reproduce the issue

This is with SDK 5.0.2

@Rexios80 Rexios80 added the bug Something isn't working label Apr 7, 2023
@samulimaa
Copy link
Contributor

Hi, getAvailableOnlineStreamDataTypes is part of the Polar Online Streaming API which is only supported by Verity Sense, H10 and OH1 devices. But I think that the thrown error could be improved to reveal the actual cause.

@Rexios80
Copy link
Author

That makes sense, except heart rate is part of streaming now which is why I expect that call to not fail on any device that supports heart rate streaming. I would expect getAvailableOnlineStreamDataTypes to return heart rate on every Polar device. I suppose I can just assume that heart rate is available, but it's still weird.

@Rexios80
Copy link
Author

Also, sdkFeatureReady is returning onlineStreaming when connected to the H9. I'm waiting for that to even make the getAvailableOnlineStreamDataTypes call

Screenshot 2023-04-19 at 6 29 11 AM

@Rexios80
Copy link
Author

Rexios80 commented Jul 4, 2023

@samulimaa Is a fix for this planned?

@Rexios80
Copy link
Author

@samulimaa This seems like it would be trivial to fix. Should we except a solution for this soon or work around it?

@Rexios80
Copy link
Author

@palmqvisti Sorry for the ping but I see you have recent activity in this repo so you got picked. Can you or someone else please either provide a status update or close this issue as not planned?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants