OvalMoney / react-native-fitness

A React Native module to interact with Apple Healthkit and Google Fit.
MIT License
341 stars 68 forks source link

Fitness.requestPermissions(permissions) does not show permission allow modal #93

Closed z3tsubouou closed 3 years ago

z3tsubouou commented 3 years ago

Fitness.requestPermissions(permissions) .then((authorized) => { console.log({authorized}); }) .catch((error) => { console.log({error}); });

When i login into permission with my google account it keeps loading. I followed all steps and double checked all of them but does not stop loading keeps loading and does not ask me permission help :smiley:

Princy-vaidya commented 3 years ago

Same here, when I am login to google account it keeps loading. Please help ....

Princy-vaidya commented 3 years ago

Hey @z3tsubouou have you got any solution for this?

z3tsubouou commented 3 years ago

Hey @z3tsubouou have you got any solution for this?

Nope i still trying i think i need use client id somewhere but also i think it is not the issue. Maybe we need verify app. If you got any solution help me too. If i got solution i will help you.

denkristoffer commented 3 years ago

Assuming we're talking about iOS the permission request only works after you add Health to the app's capabilities in Xcode. Did you do that already?

z3tsubouou commented 3 years ago

Assuming we're talking about iOS the permission request only works after you add Health to the app's capabilities in Xcode. Did you do that already?

Unfortunately i am talking about android version. After login with gmail never stop loading as you can see. Screenshot_20210117-093810.png

joaomdmoura commented 3 years ago

Same issue here, after I select the account it shows up the loading modal and never finishes tagging along this one just in case

XiNiHa commented 3 years ago

Flutter equivalent https://github.com/krokyze/FitKit/issues/69 also having the same issue. I guess it's from the Google side. There is a workaround posted which is publishing the app on the API Console.

joaomdmoura commented 3 years ago

@z3tsubouou any updates there? publishing like to production? Because I'm using the internal testing through the play consle and it doesn't work still

z3tsubouou commented 3 years ago

@z3tsubouou any updates there? publishing like to production? Because I'm using the internal testing through the play consle and it doesn't work still

nope i built my own native package 📦 (pedometer)

anass05 commented 3 years ago

I had this error in debug mode on Android. Adding the gmail account that's connected to google fit into google api console testers solved for me.

juliomdsneto commented 2 years ago

I had this error in debug mode on Android. Adding the gmail account that's connected to google fit into google api console testers solved for me.

i'm having the same issue, but idk how to connect to google api console, can u tell me more?