AdamE.Firebase.iOS.ABTesting 12.6.0

dotnet add package AdamE.Firebase.iOS.ABTesting --version 12.6.0
                    
NuGet\Install-Package AdamE.Firebase.iOS.ABTesting -Version 12.6.0
                    
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="AdamE.Firebase.iOS.ABTesting" Version="12.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AdamE.Firebase.iOS.ABTesting" Version="12.6.0" />
                    
Directory.Packages.props
<PackageReference Include="AdamE.Firebase.iOS.ABTesting" />
                    
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 AdamE.Firebase.iOS.ABTesting --version 12.6.0
                    
#r "nuget: AdamE.Firebase.iOS.ABTesting, 12.6.0"
                    
#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 AdamE.Firebase.iOS.ABTesting@12.6.0
                    
#: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=AdamE.Firebase.iOS.ABTesting&version=12.6.0
                    
Install as a Cake Addin
#tool nuget:?package=AdamE.Firebase.iOS.ABTesting&version=12.6.0
                    
Install as a Cake Tool

AdamE.Firebase.iOS.ABTesting

.NET bindings for Firebase A/B Testing on Apple platforms, for use from .NET iOS and Mac Catalyst apps.

What this package provides

This package binds the Firebase A/B Testing Apple SDK surface exposed in the Firebase.ABTesting namespace. It provides access to experiment payload coordination APIs such as ExperimentController, LifecycleEvents, and default experiment lifecycle event names.

Use this package when you need:

  • Firebase A/B Testing experiment payload handling from C#
  • access to ExperimentController.SharedInstance
  • experiment lifecycle event names for activation, timeout, expiration, and clearing

Most app code uses this package indirectly through Firebase feature packages such as Remote Config, In-App Messaging, or Performance Monitoring.

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.ABTesting" Version="12.6.0" />
</ItemGroup>

Installation

dotnet add package AdamE.Firebase.iOS.ABTesting

Basic usage

This package does not itself perform Firebase app initialization; call Firebase.Core.App.Configure() from the app before using Firebase feature APIs. Direct use of A/B Testing payload APIs is uncommon in app code, but the binding exposes the native controller surface.

using System;
using Firebase.ABTesting;
using Firebase.Core;
using Foundation;

App.Configure();

var controller = ExperimentController.SharedInstance;
var events = new LifecycleEvents
{
    SetExperimentEventName = DefaultLifecycleEventNames.SetExperiment,
    ActivateExperimentEventName = DefaultLifecycleEventNames.ActivateExperiment,
    ClearExperimentEventName = DefaultLifecycleEventNames.ClearExperiment,
    TimeoutExperimentEventName = DefaultLifecycleEventNames.TimeoutExperiment,
    ExpireExperimentEventName = DefaultLifecycleEventNames.ExpireExperiment,
};

controller.UpdateExperiments(
    "remote-config",
    events,
    ExperimentPayloadExperimentOverflowPolicy.DiscardOldest,
    0,
    Array.Empty<NSData>(),
    error =>
    {
        if (error is not null)
        {
            Console.WriteLine(error.LocalizedDescription);
        }
    });

Common companion packages

  • AdamE.Firebase.iOS.Core - Firebase app initialization.
  • AdamE.Firebase.iOS.RemoteConfig - commonly uses A/B Testing experiment payloads.
  • AdamE.Firebase.iOS.InAppMessaging - commonly uses A/B Testing experiment payloads.
  • AdamE.Firebase.iOS.PerformanceMonitoring - package metadata references A/B Testing as a companion dependency.

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.ABTesting. API names closely mirror the native Firebase Apple SDK surface and expose Apple-native concepts such as NSError, NSData, and callback-based completion handlers.

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.

If this package is valuable in your app or organization, sponsorship helps support continued maintenance and updates.

Product Compatible and additional computed target framework versions.
.NET net9.0-ios18.0 is compatible.  net9.0-maccatalyst18.0 is compatible.  net10.0-ios was computed.  net10.0-ios26.0 is compatible.  net10.0-maccatalyst was computed.  net10.0-maccatalyst26.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on AdamE.Firebase.iOS.ABTesting:

Package Downloads
AdamE.Firebase.iOS.RemoteConfig

C# bindings for Firebase APIs Remote Config iOS Library

AdamE.Firebase.iOS.PerformanceMonitoring

C# bindings for Firebase APIs Performance Monitoring iOS Library

AdamE.Firebase.iOS.InAppMessaging

C# bindings for Firebase APIs In-App Messaging iOS Library

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
12.6.0 28 4/18/2026
12.5.0.4 15,173 12/24/2025
12.5.0.3 217 12/24/2025
12.5.0.2 216 12/24/2025
12.5.0.1 909 12/14/2025
12.5.0 702 12/11/2025
12.4.0 3,882 10/30/2025
12.3.0 1,067 9/21/2025
12.2.0 276 9/20/2025
12.1.0 288 9/19/2025
12.0.0 221 9/12/2025
11.15.0 948 9/12/2025
11.14.0 749 9/7/2025
11.13.0 232 9/7/2025
11.12.0 200 9/6/2025
11.11.0 205 9/6/2025
11.10.0.2 453 8/31/2025
11.10.0.1 258 8/30/2025
11.10.0 12,679 4/2/2025
11.9.0 308 4/1/2025
Loading failed