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

How to use google fit without download the google fit app in android device? #69

Open
GuleriaAshish opened this issue Sep 2, 2020 · 1 comment

Comments

@GuleriaAshish
Copy link

GuleriaAshish commented Sep 2, 2020

I am using the react-native-fitness version 0.4.0 and react-native version 0.63.2.
I am getting an empty array in return of calling getCalories function until i install Google Fit app on my android phone. I don't want to install google fit app, but without it function returns me empty array.
There must be a way around, Please suggest.

@Ekoios-Teddy
Copy link

{ kind: Fitness.PermissionKinds.Activity, access: Fitness.PermissionAccesses.Read } add to permission to request permission ACTIVITY_RECOGNITION and it work

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

No branches or pull requests

2 participants