0

I'm trying to add login to my android studio app in Kotlin with OAuth2 Google, and it's keep loading and not login, what I have to do?

OfekG
  • 9
  • 4
  • Same issue here: https://stackoverflow.com/questions/65735897/oauth-consent-screen-blank-in-android-app-with-google-fit – ryanez Jan 18 '21 at 10:20
  • thanks, but its seem that they don't solved the problem too.. – OfekG Jan 19 '21 at 14:03

1 Answers1

2

I found a solution, it is strange but anyway it works for me:

  • Delete your Cloud project
  • Instead of the following instructions from http://developers.google.com/fit/android/get-started create a new project with firebase.
  • Add an android app in firebase project settings
  • Add both the SHA1 and SHA256 to it.
  • Download google-services.json to android/app in your project folder.
  • Make sure to have my "support email" set on general Project settings.

Now it should work.

If this not help, please also check Flutter and google_sign_in plugin: PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null)

Guys have a similar problem with GoogleSignIn