OvalMoney / react-native-fitness

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

OAuth consent screen is showing wrong required permissions. #109

Open castrohenworx opened 2 years ago

castrohenworx commented 2 years ago

Hi! First of all thank you for your library!

In theory everything works fine, but in practice there is a problem with the google compliance. When the consent permission screen appears, the text says something about giving consent to share email address and profile picture instead of the steps we actually want to read.

image

The permissions constant looks like this:

const permissions = [
  {
    kind: Fitness.PermissionKinds.Steps,
    access: Fitness.PermissionAccesses.Read,
  },
];

Everything else works correct, but the consent screen does not allow us to pass the audit done by Google.

I would really appreciate if you could take a look at this issue.

matinzd commented 2 years ago

I think It's default behavior from Google. Can you also check if you have this issue as well? https://github.com/OvalMoney/react-native-fitness/issues/110

castrohenworx commented 2 years ago

I think It's default behavior from Google. Can you also check if you have this issue as well? #110

We get the above screen no matter what the requirements are.

I wonder why you get the permissions displayed, and we don't.

Also note: In the modal window the message is wrong, but the functionality is actually there. We can access the Google Fit Steps data, but we can not pass through the Google verification process without doing shady things.