polarofficial / polar-ble-sdk

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

PPI Stream Failed: Reason com.polar.sdk.api.errors.PolarNotificationNotEnabled #405

Closed RitikaNigam-ux closed 4 months ago

RitikaNigam-ux commented 8 months ago

Platform your question concerns:

Device:

Description: I have integrated the HR and PPI stream API in my unity game android app. I am able to record HR (Bpm) while running the game but PPI streams fail due to com.polar.sdk.api.errors.PolarNotificationNotEnabled. I wanted to know how to solve this error and enable PPI stream.

I have attached the log which shows the error and also code snippet which I am streaming PPI

Screenshot 2023-10-16 at 6 14 47 PM

3/60d96120-2272-4dab-8c53-5d635bfe3b7f">

RitikaNigam-ux commented 8 months ago
Screenshot 2023-10-16 at 6 15 44 PM
jimmyzumthurm commented 4 months ago

hi @RitikaNigam-ux , Sorry for the late answer, but looking at your logs it seems that you try to enable the PPI streaming feature right after the connection is established but before the Polar Measurement Data Service characteristics notification are subscribed.

I recommend that you try to enable PPI streaming using bleSdkFeatureReady callback