Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Access mobile app that is verified for Google Health Scopes, without mandatory Google OAuth sign in

Hey Google Community! 

We use the GCP Sensitive Health Scopes in our react native application. They're all approved, and function in our app. We don't require users to use Google OAuth to login to our react native app, users only have the option to login just with their email address. 

We've had the Google OAuth screen added into our react native app for the purpose of being able to connect to sensitive health scopes, so that we can present wearable data to users within our health/fitness app, but the google oauth is not allowing users to proceed into our app unless they login with Google first. This is not how we want our app to function. We don't want the Google login to be mandatory. We want our users to be able to access our app, without having to grant permission to Google or login with Google. Technically our users should be able to:

(a) login with email (note: we do not have a Google sign in button on our app, we have our own login with email option only).

(b) users should be able to opt in/out of the sensitive health scopes without being forced into logging in with Google (our users have already logged in with their email, it's an irrelevant step to also log in with Google unless they are granting access to sensitive health data).

Right now this is how it works in our app: 

  1. New user registers with their email (no Google Oauth login option provided)
  2. User onboards
  3. Get Google OAuth Login screen (this blocks the user from progressing until they login)
  4. Access home dash
  5. Get pop up from Google to accept sensitive health scopes
  6. Access the rest of the app

How we want it to work is outlined below: 

  1. New user registers with their email (no Google Oauth login option provided)
  2. User onboards
  3. Get pop up from Google to accept sensitive health scopes 
    1. If they click to accept, then the user gets the Google OAuth Login screen 
    2. If the user clicks to skip/deny, then they can continue into the app without logging into the Google OAuth screen
  4. Access home dash
  5. Access the rest of the app

Any and all guidance to enable our users to access our Android mobile app without having to login with Google is much appreciated 🙂 If you have URLs to other forums or 'how to instructions' that show a step by step, that would be amazing! We've searched the web, and haven't found something helpful so far. 

0 4 454
4 REPLIES 4

Hi @CheckingIN,

Welcome to the Google Cloud Community!

Try the following troubleshooting options:

  1. You can stop displaying the One Tap UI when the user declines the sign in. Read more in this documentation.
  2. If you want to understand more about opting out of the One Tap UI, read more in this documentation.
  3. You can also get in touch with Google Cloud Support if the above options don't work.

Let me know if it helped, thanks!

Hi @Marramirez - that's not what I'm looking for.

We're really wanting to remove the mandatory element of the OAuth pop up in onboarding. Currently, our users get stuck after seeing the Google Oauth pop up - there is NO OPTION to 'skip' or 'close' or 'dismiss' the pop up in any way. It is a pop up that's coming through our react-native-google-fit library and displaying in our react-native app. Can you have your team consult and support us with this so we can let our users access our app without needing to accept Google OAuth? Alternately, if there is a react native library you suggest we use instead, then please advise. We use this library currently to enable our users to connect their sensitive health data from their google fit to our android app. 

Open to all support and suggestions. Thanks!

@Marramirez  - any response for this from you or your team?

@Marramirez 

Thank you for your reply.

Our issue is that the popup blocks the user from progressing until they log in on the first try. The solution you have provided is for successive attempts.

We want to request a solution that would allow users to progress even if they are unable to log in on the first try. This would improve the user experience and make it easier for users to access our content.

We appreciate your time and consideration.

Top Labels in this Space