![]() |
VOOZH | about |
dotnet add package Plugin.Firebase.Auth.Google --version 3.1.2
NuGet\Install-Package Plugin.Firebase.Auth.Google -Version 3.1.2
<PackageReference Include="Plugin.Firebase.Auth.Google" Version="3.1.2" />
<PackageVersion Include="Plugin.Firebase.Auth.Google" Version="3.1.2" />Directory.Packages.props
<PackageReference Include="Plugin.Firebase.Auth.Google" />Project file
paket add Plugin.Firebase.Auth.Google --version 3.1.2
#r "nuget: Plugin.Firebase.Auth.Google, 3.1.2"
#:package Plugin.Firebase.Auth.Google@3.1.2
#addin nuget:?package=Plugin.Firebase.Auth.Google&version=3.1.2Install as a Cake Addin
#tool nuget:?package=Plugin.Firebase.Auth.Google&version=3.1.2Install as a Cake Tool
You can use Firebase Authentication to allow users to sign in to your app using one or more sign-in methods, including email address and password sign-in, and federated identity providers such as Google Sign-in and Facebook Login.
Install-Package Plugin.Firebase.Auth
CrossFirebase.Initialize():#if IOS
FirebaseAuthGoogleImplementation.Initialize();
#elif ANDROID
FirebaseAuthGoogleImplementation.Initialize("your-google-request-id-token");
#endif
googleRequestIdToken can be accessed at the Google API Console (make sure to use the Client-ID of the Web client) <dict>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)my.fancy.app</string>
</array>
</dict>
Info.plist: <key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>com.googleusercontent.apps.123456-abcdef</string>
</array>
</dict>
</array>
FirebaseAuthImplementation.HandleActivityResultAsync(requestCode, resultCode, data); from MainActivity.OnActivityResult(...).csproj file to prevent build errors: <PackageReference Include="Xamarin.AndroidX.Browser" Version="1.6.0.2" />
For more specific instructions take a look at the official Firebase documentation
Take a look at the documentation for the AdamE.Firebase.iOS.Auth packages, because Plugin.Firebase's code is abstracted but still very similar.
Since code should be documenting itself you can also take a look at the following classes:
FirebaseUser in FirebaseAuthImplementation.CreateUserAsync(email, password) method (issue #183)| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-android34.0 net8.0-android34.0 is compatible. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-ios18.0 net8.0-ios18.0 is compatible. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.