googlesamples / google-signin-unity

Google Sign-In API plugin for Unity game engine. Works with Android and iOS.
Other
424 stars 231 forks source link

Getting exception of type 'Google.GoogleSignIn+SignInException' when doing google sign in for Firebase authentication with under 13 year old child google account #175

Open pihels opened 3 years ago

pihels commented 3 years ago

Hi!

In my app I am using FireStore with Google Sign In. I'm getting the error when trying to sign in with an under 13 years old child's google account. Everything works fine with a regular account so I assume it has something to with it being a child's account. However I am unable to find any information about why this error is happening. Is google sign in just disabled for a child's account with Firebase? Can i change some configuration somewhere to allow this?

I am using Unity with 2019.2.21f1 with Firebase Unity SDK 6.15.2.

I haven't been able to get a more detailed error message. Any advice on this? Currently using something like this

  if (task.Exception != null) {
      string excs="";
      foreach (var ex in task.Exception.InnerExceptions) {
          GoogleSignIn.SignInException error = (GoogleSignIn.SignInException) ex;
          excs +="Got Error: " + error.Status + " msg " + error.Message;
      }
      InvokeCallbackOnMainThread (failureCallback, excs);
      return;
  }

I would really appreciate any help with this issue as I've tried googling for a couple of hours and have come up empty.