Hi Google Cloud Team,
I am experiencing an issue with Google Sign-In in my Flutter app, which uses Firebase for authentication.
Details:
Steps I Have Taken:
Questions:
Thank you for your support.
Hi @SimpleNotion,
Welcome to the Google Cloud community!
I understand that you have set up Firebase Authentication for your Flutter app, and that you recently encountered an ApiException 10
error in Google Sign-in.
The ApiException 10
error indicates two possible scenarios that could be happening in your Google Sign-in implementation:
clientId
parameter to GoogleSignIn
. If so, make sure that you're using the Web client (Auto-created for Google Sign-in) client ID. This can be found in Google Cloud console > Credentials, in the list of OAuth client 2.0 client IDs. You can also gain a better explanation of this behavior here.If your app's OAuth consent screen is in "Pending verification" status, this will not affect your Google Sign-in flow in terms of raising an exception or causing a disruption. However, please bear in mind the following scenarios that could happen under this status:
If your app's verification status is in “Testing” mode, the workaround for this is to continue disregarding labels like “unverified app” if non-test users are involved, or you can continue managing (adding/removing) test users (limit of which is around 100). As long as you're not accessing restricted scopes, your users have a lesser chance of being warned or blocked.
For more information about the scenarios involved while your app undergoes an OAuth Consent Screen verification, you can check this documentation.
Lastly, I've noticed that the version of your google_sign_in
plugin is outdated. At the time of this writing v6.2.2 is the latest version. It may be best to update your packages related to Firebase and Google Sign-in for your Flutter app.
Hope this helps.
I have added all json file and enable from firebase also. its working properly in debug and release mode. but when i try to test on playstore production mode then its not working.