-
Notifications
You must be signed in to change notification settings - Fork 68
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
Error screen on android #68
Comments
I got the same error and resolve it by using direct values for kind permission like this: All the values that we can use are : export declare enum PermissionAccess { |
@GuleriaAshish thanks. You made my morning.. and my day ... and my week 👍 |
You welcome @batical , Are you currently working on it? Actually i am facing an issue that when i call getCalories it returns me an empty array. So have you face this thing too? |
I quickly test If it was not crashing. have to to more implementation and test on real device. I am only using getSteps in my case. will come back after more test |
Have you get a proper result in case of using getSteps? |
I tested with a internal release on my staging app. I use Huawei P20 for testing. I install google fit app. I add a activity with some steps and was able to fetch them in my app |
@batical @GuleriaAshish since you managed to run it on Android, can you see if I am missing something? It just shows the modal to choose account, but no option to choose permissions after that |
@PaLaMuNDeR, Please refer this solution of how to use permissions const. |
On iOS it is working fine without issue
on android, I can make it work
React native : 0.62
"@ovalmoney/react-native-fitness": "^0.4.0",
I did this step (I think correctly)
Get an OAuth 2.0 Client ID as explained at https://developers.google.com/fit/android/get-api-key
When I try to call isAuthorized, or requestPermission
Any idea ?
The text was updated successfully, but these errors were encountered: