FireForNet.Firebase.Auth.Android 1.0.1-preview.22

Prefix Reserved
This is a prerelease version of FireForNet.Firebase.Auth.Android.
dotnet add package FireForNet.Firebase.Auth.Android --version 1.0.1-preview.22
                    
NuGet\Install-Package FireForNet.Firebase.Auth.Android -Version 1.0.1-preview.22
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FireForNet.Firebase.Auth.Android" Version="1.0.1-preview.22" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FireForNet.Firebase.Auth.Android" Version="1.0.1-preview.22" />
                    
Directory.Packages.props
<PackageReference Include="FireForNet.Firebase.Auth.Android" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FireForNet.Firebase.Auth.Android --version 1.0.1-preview.22
                    
#r "nuget: FireForNet.Firebase.Auth.Android, 1.0.1-preview.22"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FireForNet.Firebase.Auth.Android@1.0.1-preview.22
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FireForNet.Firebase.Auth.Android&version=1.0.1-preview.22&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=FireForNet.Firebase.Auth.Android&version=1.0.1-preview.22&prerelease
                    
Install as a Cake Tool

FireForNet.Firebase.Auth.Android

Native (non-MAUI) Android platform integration for FireForNet Firebase Authentication.

About FireForNet

FireForNet is a platform-agnostic, .NET-native Firebase Client SDK developed as part of the Circuids ecosystem. It provides a consistent Firebase client development experience across .NET application environments, while allowing platform-specific implementations where Firebase requires them.

About This Package

This package provides Android-specific Firebase Authentication functionality for FireForNet. It targets net10.0-android with no MAUI dependency, making it suitable for bare .NET Android apps (Avalonia Android, WinUI-style Android, terminal services, etc.).

It provides:

  • Token storage — KeystoreTokenStorage encrypts auth tokens at rest using Jetpack Security EncryptedFile + MasterKey (AES-256-GCM, key held in the Android KeyStore). The encrypted file lives in the app's private files directory. On corruption or key loss the file is deleted and storage returns empty.
  • Web authentication (opt-in) — CustomTabsWebAuthProvider launches the Firebase __/auth/handler flow in a system browser tab via Custom Tabs.

Installation

dotnet add package FireForNet.Firebase.Auth.Android

Usage

services.AddFirebase(new FirebaseOptions
{
    ApiKey = "your-api-key",
    ProjectId = "your-project"
})
.AddFirebaseAuth()
.UseAndroid(options =>
{
    options.EnableTokenStorage = true;       // default: true
    options.EnableWebAuthProvider = true;    // default: false (opt-in, see below)
});

MAUI apps on Android should normally call UseMaui() from FireForNet.Firebase.Auth.Maui, which delegates to this package on the Android TFM.

Web auth provider setup (opt-in)

EnableWebAuthProvider defaults to false because two consumer-side setup steps are required:

  1. Register an IAndroidActivityContext (or rely on the default, which tracks the foreground activity via Application.RegisterActivityLifecycleCallbacks). Call DefaultAndroidActivityContext.Attach(Application) once at startup.
  2. Add the redirect <intent-filter> to your AndroidManifest.xml for the scheme derived from your package name (reverse-DNS). For package com.example.app the scheme is app.example.com:
<activity android:name=".MainActivity" ...>
    <intent-filter android:autoVerify="true">
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="app.example.com" />
    </intent-filter>
</activity>

Forward the redirect intent from your Activity.OnNewIntent to the provider:

protected override void OnNewIntent(Intent intent)
{
    base.OnNewIntent(intent);
    _webAuthProvider.HandleCallbackAsync(intent.Data);
}

Platform / Framework Support

Platform / Framework Status
Android (net10.0-android, non-MAUI) Preview

Documentation

Comprehensive FireForNet documentation is being prepared for the Release Candidate stage.

Project Status

FireForNet is currently available as a Preview release and is approaching its Release Candidate milestone. APIs, package structure, and implementation details may continue to evolve before RC and GA.

The RC milestone will be followed by an extensive cross-platform validation and testing phase before the first GA release.

All FireForNet packages are part of a coordinated release train and share the same version number.

Source Availability

FireForNet is currently being developed in a private source repository during the Preview development phase. The source will be made publicly available as the project approaches its open-source phase, with the public repository established from the appropriate release milestone.

Until then, NuGet Preview packages provide the public distribution channel for evaluating and using FireForNet.

License

This package is licensed under the Apache-2.0 license.

Product Compatible and additional computed target framework versions.
.NET net10.0-android36.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on FireForNet.Firebase.Auth.Android:

Package Downloads
FireForNet.Firebase.Auth.Maui

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1-preview.22 55 9/27/2026
1.0.1-preview.21 64 9/22/2026
1.0.1-preview.20 61 9/18/2026

v1.0.1-preview.22
- Synchronized package version with the preview.22 release.

v1.0.1-preview.21
- No functional changes; synchronized with the framework-free MAUI integration sweep.

v1.0.1-preview.20
- Synchronized package version with the preview.20 release.

v1.0.1-preview.19
- Synchronized package version with the preview.19 release.

v1.0.1-preview.18
- Synchronized package version with the preview.18 release.

v1.0.1-preview.17
- Synchronized package version with the preview.17 release.

v1.0.1-preview.16
- Synchronized package version with the preview.16 release.

v1.0.1-preview.15
- Synchronized package version with the preview.15 release.

v1.0.1-preview.14
- Synchronized package version with the preview.14 release.

v1.0.1-preview.13
- Synchronized package version with the preview.13 release.

v1.0.1-preview.12
- Synchronized package version with the preview.12 release.