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

I would like to be able to get the default measurement units #306

Open
joaoTray opened this issue Apr 10, 2023 · 0 comments
Open

I would like to be able to get the default measurement units #306

joaoTray opened this issue Apr 10, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@joaoTray
Copy link

Is your feature request related to a problem? Please describe.
The getWeight functions returns proper values for the weight, however, there is no explanation of what type of unit is. We can pass the one that we want to see, but we cannot use the values used by the user. I believe that should have a way to either:

  • Get the type of Unit that was used when saving the data in Apple Health;
  • Get the default settings in Apple Health for measurement Units

Describe the solution you'd like
The best would be to add to the getWeight (and maybe getHeight) functions the value that is being returned from the system together with the unit stored.

Describe alternatives you've considered
The only option that I can see is to add a select in my app to allow the user to select in my app. Which would be unnecessary if the library would return it.

Additional context
Trying to follow the request information here, but of course, I would like to say a big thank you for all the work on this library! :)

@joaoTray joaoTray added the enhancement New feature or request label Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant