I am trying to add a 'sign in with google' option to my app, using firebase. However when I click the button which calls the sign in script on my android device, the app crashes and closes completely.
I cannot run this script in the editor. so is there another way of finding out what the error is?
I am using the script found here https://www.dropbox.com/s/qss2wk4v52d48j4/GoogleSignInDemo.cs?dl=0 and have taken the web client id from my firebase project, and enabled google sign in.
I have also added the sha1 fingerprint to my firebase project and have copied the google-services.json file to my unity project. I am using Unity 2020.1.6f1 My firebase packages are version 7.0.1 and the google sign in plugin 1.0.4
Would appreciate all help on fixing this issue and getting the sign in with google option to work.
I have found that my code breaks here:
GoogleSignIn.DefaultInstance.SignIn().ContinueWith(OnAuthenticationFinished);
This is the OnAuthenticationFinished method:
internal void OnAuthenticationFinished(Task<GoogleSignInUser> task){}
I have left it empty to make sure the problem isn't inside the method