Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

When implementing Google Sign-In on Android, is it possible to indicate in the google account sign-in popup that only email address will be used? #615

Description

@jin-jobs

Step 2: Describe your environment

  • Device: all
  • OS version: all
  • SDK version:
  • [Android] Google Credentials version: 1.2.2

Step 3: Describe the problem:

Steps to reproduce:

  1. Implement google sign in using CredentialManager and GetSignInWithGoogleOption.
  2. Build the app and press the google sign up button to proceed with the signup process.
  3. In the google account integration popup, you will see that “name, email address, profile picture” are accessible in the user's account.
image

Observed Results:

  • In the google account integration popup, you will see that “name, email address, profile picture” are accessible in the user's account.

Desired Results:

  • I only need the user's email address. I want the popup to show the user that it only uses the email address.
    As I understand it, name, email address, profile picture are the default public information in google account. However, I will only use the user's email address in my app via google sign-up, and I want the popup to show only the email address.
    Is this possible?

Relevant Code:

          val credentialManager = CredentialManager.create(context)
          val request = GetCredentialRequest(
              listOf(
                  GetSignInWithGoogleOption.Builder($google_client_id)
                      .build()
              )
          )
          val result = credentialManager.getCredential(context, request)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions