Your app can request additional scopes any time after the initial scopes have been granted. In this case, only those additional scopes will appear in the user's consent screen. Your app should request all previously granted scopes with these additional scopes to ensure your app proceeds with all the access it expects.
To request additional scopes:
- Create a
GoogleSignInOptionsobject with the new scopes that you want to request.
- Disconnect the current
GoogleApiClient, and connect a new
GoogleSignInOptionsobject you created.
- Create and start a sign-in intent with
getSignInIntentand the new
Your app will display a consent dialog requesting the additional permissions the user has not already granted your app.
You might use this technique if you suspect users are avoiding sign-in because your consent screen is overwhelming new users, or if you think users are confused why they are being asked for certain permissions. In either case, you can delay the additional scopes and present them just before they are needed.