-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Auth.Google to use AdamE.Google.iOS.SignIn #405
Update Auth.Google to use AdamE.Google.iOS.SignIn #405
Conversation
Thanks a ton @Dreamescaper! Did these updates work for you? |
Yes, currently I have simply copied those changes to my repo, and it's working fine on a real device. (I have an issue with the simulator, but it seems like it's not dotnet specific: firebase/flutterfire#13420 ) |
Good to know. I use the AdamE.Google.iOS.SignIn package myself (though not with this plugin) and |
I don't understand why most of the code there is needed (as I'm very new to ios development). Still, current Would it make sense to remove this method? |
GoogleSignIn needs its
Unless you're doing something outside of Firebase with Google Auth (i.e. authenticating with Google separately with your own backend server), I don't think you need to be concerned with setting |
It is initialized automatically if everything is set up in plist files. No need to initialize it manually.
I am working with GoogleAuth separately from Firebase. While firebase is used for authorisation, there is a Google Calendar Integration available. I need ServerAuth code for that. |
I think this is only going to be true if you have The plugin is just following the official Firebase documentation for configuring Google Auth by setting the GIDClientId programmatically from the Firebase app config. In your use case, it seems like this wouldn't be the right thing to do since you'd expect the Configuration to already be set (assuming your Firebase ClientID and GIDClientID are the same...) Perhaps the if (SignIn.SharedInstance.Configuration == null)
{
var googleServiceDictionary = NSMutableDictionary.FromFile("GoogleService-Info.plist");
var clientId = googleServiceDictionary["CLIENT_ID"].ToString();
SignIn.SharedInstance.Configuration = new Configuration(clientId);
} |
Ok, that makes sense. Thanks for an explanation! |
My project doesn't even build with
Auth.Google
package for iOS, not to mention that it's not supported by Firebase anymore.Therefore, I have updated it to use
AdamE.Google.iOS.SignIn
instead of abandonnedXamarin.Google.iOS.SignIn
.