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

Scope for HealthDataTypes of Google Fit #6

Open
codingjeremy opened this issue Sep 10, 2019 · 5 comments
Open

Scope for HealthDataTypes of Google Fit #6

codingjeremy opened this issue Sep 10, 2019 · 5 comments
Labels
migrated googlesamples Migrated from old googlesamples repos

Comments

@codingjeremy
Copy link
Contributor

Issue by ViTVetal
Tuesday Jun 13, 2017 at 15:33 GMT
Originally opened as googlearchive/android-fit#22


I want read HealthDataTypes (temperature, blood pressure and glucose). Which Scope I must set when create GoogleApiClient?

.addScope(new Scope(????))

@codingjeremy
Copy link
Contributor Author

Comment by mcpotter
Tuesday Aug 08, 2017 at 02:10 GMT


I'm curious too. Can anyone shed some light on this? I'm unable to read the data (it just gives me a result along the lines of "Application needs OAuth consent from the user" because we don't have the required Scope specified, if such a Scope exists).

@codingjeremy
Copy link
Contributor Author

Comment by mohananr-tpvision
Monday Sep 11, 2017 at 04:47 GMT


addScope(new Scope("https://www.googleapis.com/auth/fitness.blood_pressure.read")) works. This atleast helps you resolve the "Application needs OAuth consent from the user". I really dont have an app or a device that would sync HealthData (BP or glucose) into google fit. So, im not able to test anything.
Do you know if there is a device or app in the market that would write healthdata into google fit ?

@codingjeremy
Copy link
Contributor Author

Comment by mohananr-tpvision
Monday Sep 11, 2017 at 04:47 GMT


You can also refer to my stackoverfloww link on the same topic.
https://stackoverflow.com/questions/46110711/google-fit-rest-api-support-for-new-healthdatatypes?noredirect=1#comment79232750_46110711

@codingjeremy
Copy link
Contributor Author

Comment by FalmaJeus
Monday Aug 20, 2018 at 10:31 GMT


Hello, Have you found any apps that write blood pressure data.
https://play.google.com/store/apps/details?id=com.getqardio.android&hl=en
Please try this qardio app. They say that this app syncs data with Google fit and it has option to input blood pressure manually.
I am not sure that it actually writes data or not.
I had made manual blood pressure data and tried to read /datasources with google fit rest api, but it returns empty array. Of course, the request is authorized.
Please help me if you can.
Thanks.

@codingjeremy
Copy link
Contributor Author

Comment by ViTVetal
Monday Aug 20, 2018 at 10:53 GMT


@FalmaJeus Hello! Unfortunately, I didn't find the solution. You may write do developers of this app on play store

@codingjeremy codingjeremy added the migrated googlesamples Migrated from old googlesamples repos label Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
migrated googlesamples Migrated from old googlesamples repos
Projects
None yet
Development

No branches or pull requests

1 participant