Skip to content
This repository has been archived by the owner on Sep 19, 2019. It is now read-only.

Scope for HealthDataTypes of Google Fit #22

Closed
ViTVetal opened this issue Jun 13, 2017 · 6 comments
Closed

Scope for HealthDataTypes of Google Fit #22

ViTVetal opened this issue Jun 13, 2017 · 6 comments

Comments

@ViTVetal
Copy link

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

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

@mcpotter
Copy link

mcpotter commented Aug 8, 2017

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).

@mohananr-tpvision
Copy link

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 ?

@mohananr-tpvision
Copy link

@FalmaJeus
Copy link

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.

@ViTVetal
Copy link
Author

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

@codingjeremy
Copy link
Contributor

I am closing this issue/PR, as it has been migrated to the new repo linked above in the comments. Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants