polarofficial / polar-ble-sdk

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

Feature Request: Expose information about device being charged #385

Open orestesgaolin opened 1 year ago

orestesgaolin commented 1 year ago

Platform your question concerns:

Device:

Description:

Currently when device is being charged, it will not update the battery level, nor it will not expose any information about being charged at the moment.

As developer I'd love to have a way to see that device is connected to the charger. Would that be somehow possible? Few months ago we discovered that the SDK can throw when trying to query ACC while device is on charger, so it seems like this information is available somewhere and maybe it's possible to expose it with dev-friendly APIs?

jimmyzumthurm commented 11 months ago

Hi @orestesgaolin

Thank you for the report and your suggestion.

This issue where device is not updating its battery level on notifications while charging is a known issue : https://github.com/polarofficial/polar-ble-sdk/blob/master/documentation/KnownIssues.md See issue 2 here. We have made a ticket internally to fix it.

About exposing the charging status, we will discuss internally and let you know if we can implement that for future SDK / Verity Sense firmware releases. As stated in the past, this information cannot be fetched from BLE Battery Service, as it is using version 1.0 that only specify the battery level.