AdamE.Firebase.iOS.AppCheck 12.6.0

AdamE.Firebase.iOS.AppCheck

.NET bindings for Firebase App Check on Apple platforms, for use from .NET iOS and Mac Catalyst apps.

What this package provides

This package binds the Firebase App Check Apple SDK surface exposed in the Firebase.AppCheck namespace. It provides access to App Check token APIs, provider factories, debug provider support, DeviceCheck support, and App Attest provider types exposed by the native SDK.

Use this package when you need:

  • App Check provider configuration before Firebase app initialization
  • App Check token retrieval through AppCheck.SharedInstance
  • debug, DeviceCheck, or App Attest provider binding access
  • App Check token auto-refresh controls

Most apps using this package also reference AdamE.Firebase.iOS.Core for Firebase app initialization.

Official Firebase documentation comes first

These packages are thin .NET bindings over the official Firebase Apple SDKs.

Use the official Firebase documentation as the starting point for:

  • Firebase configuration and platform setup
  • feature usage and behavioral guidance
  • troubleshooting and best practices

These bindings primarily:

Supported target frameworks

This package is intended for Apple platform TFMs such as:

  • net9.0-ios
  • net10.0-ios
  • net9.0-maccatalyst
  • net10.0-maccatalyst

When multi-targeting, condition the package reference so it only restores for Apple targets.

<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios' Or $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">
  <PackageReference Include="AdamE.Firebase.iOS.AppCheck" Version="12.6.0" />
</ItemGroup>

Installation

dotnet add package AdamE.Firebase.iOS.AppCheck

Basic usage

Set the App Check provider factory before calling Firebase.Core.App.Configure().

using System;
using Firebase.AppCheck;
using Firebase.Core;

AppCheck.SetAppCheckProviderFactory(new AppCheckDebugProviderFactory());
App.Configure();

AppCheck.SharedInstance.TokenForcingRefresh(true, (token, error) =>
{
    if (error is not null)
    {
        Console.WriteLine(error.LocalizedDescription);
        return;
    }

    Console.WriteLine(token?.ExpirationDate);
});

Common companion packages

  • AdamE.Firebase.iOS.Core - Firebase app initialization.

Firebase app configuration

Firebase apps commonly require app-specific configuration from your own Firebase project, such as GoogleService-Info.plist.

Keep app-specific Firebase configuration in the application project or sample app, not in reusable library projects.

If the official Firebase docs for this feature require additional setup, follow those docs first.

Package versioning rules (important)

Because Firebase Apple SDKs are packaged as native xcframeworks and distributed here through NuGet, consumers should explicitly pin package versions.

Due to packaging differences between CocoaPods and NuGet, it is highly recommended that applications follow these rules:

  1. Keep the MAJOR.MINOR version aligned across all Firebase packages in the app, for example 12.6.*.*.
  2. Then use the latest available PATCH.REVISION for each individual package.

Example:

<ItemGroup>
  <PackageReference Include="AdamE.Firebase.iOS.Core" Version="12.6.0.3" />
  <PackageReference Include="AdamE.Firebase.iOS.Auth" Version="12.6.0.2" />
  <PackageReference Include="AdamE.Firebase.iOS.CloudFirestore" Version="12.6.0.5" />
</ItemGroup>

Avoid mixing mismatched Firebase package lines such as 12.6.x.x with 12.5.x.x, or 12.x.x.x with 11.x.x.x. Doing so can lead to native dependency conflicts, duplicate symbols, runtime failures, or other undefined behavior.

Notes on native dependency conflicts

Google and Firebase Apple SDKs share native dependencies. Avoid mixing multiple unrelated binding packages that embed overlapping Google/Firebase native SDK binaries in the same app unless you are certain they are compatible.

API surface notes

The public namespace is Firebase.AppCheck. API names closely mirror the native Firebase App Check SDK surface and expose Apple-native concepts such as NSError, NSDate, and provider factory protocols.

Repository / support

Support the project

Keeping Firebase Apple bindings current for .NET requires ongoing work across SDK updates, native dependency changes, and API surface maintenance.

App Check support in this binding was added through a special effort by GitHub user Kapusch.

If this App Check package is valuable in your app or organization, sponsorship helps support that work and continued maintenance.

No packages depend on AdamE.Firebase.iOS.AppCheck.

Version Downloads Last updated
12.8.0 0 04/20/2026
12.7.0 0 04/19/2026
12.6.0 1 04/20/2026
12.5.0.4 0 02/07/2026