Closed philipusmartin9 closed 4 years ago
I finally managed to make it work by adding this to my build.gradle dependencies:
implementation "com.google.android.gms:play-services-base:+" implementation "com.google.android.gms:play-services-auth:+" implementation "com.google.android.gms:play-services-fitness:+"
the permission request works, now the authorization returns true, but I still only get empty array even though I have steps data in my google fit account. could anyone please help with this? thanks
It works, the app can only get the google fit data in the same, not cross-device.
@philipusmartin9 Thank you for explain the issue. Glad to hear it works in some way
Hello,
First of all, great work! Im so excited to try this plugin. I tried using this with RN 0.62, (using autolinking). if I run without checking isAuthorized, it always gives null reference error. So, I put some console.log(s) and found out isAuthorized always return false, PermissionAccess.write always return undefined. Did I miss a step in setting up this plugin, or maybe there's missing step in the usage?
Thanks in advance, pardon if the snippet is a bit messy
const permissions = [ { kind: Fitness.PermissionKind.Step, access: Fitness.PermissionAccess.Write } ];
`const logSteps = async () => {
} `