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

Float value with getStepCount method #305

Open
FarrukhPQazi opened this issue Apr 3, 2023 · 0 comments
Open

Float value with getStepCount method #305

FarrukhPQazi opened this issue Apr 3, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@FarrukhPQazi
Copy link

Describe the bug
Sometimes very weirdly the step count is a float value like 11,623.858733. It doesn't make sense to have step count as float number so I am not sure why this happen. The step counts on Apple health is however in integers only.

To Reproduce
It happens randomly to different users of our App, so do not have a way to reproduce this but it happens quite often at least for different 5-6 users everyday.

Expected behavior
I think it can be handled from the method implementation itself by rounding off the float value into integer. However for now I have added additional parsing logic within our code to handle it.

Screenshots
N/A

Smartphone (please complete the following information):

  • Device: [iPhone 12+]
  • OS: [iOS 16.X]
  • Version [1.14.0]

Additional context
N/A

@FarrukhPQazi FarrukhPQazi added the bug Something isn't working label Apr 3, 2023
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

1 participant