ExzileGames.AndroidRemoteConfigBridge 1.0.24

There is a newer version of this package available.
See the version list below for details.
dotnet add package ExzileGames.AndroidRemoteConfigBridge --version 1.0.24
                    
NuGet\Install-Package ExzileGames.AndroidRemoteConfigBridge -Version 1.0.24
                    
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="ExzileGames.AndroidRemoteConfigBridge" Version="1.0.24" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ExzileGames.AndroidRemoteConfigBridge" Version="1.0.24" />
                    
Directory.Packages.props
<PackageReference Include="ExzileGames.AndroidRemoteConfigBridge" />
                    
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 ExzileGames.AndroidRemoteConfigBridge --version 1.0.24
                    
#r "nuget: ExzileGames.AndroidRemoteConfigBridge, 1.0.24"
                    
#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 ExzileGames.AndroidRemoteConfigBridge@1.0.24
                    
#: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=ExzileGames.AndroidRemoteConfigBridge&version=1.0.24
                    
Install as a Cake Addin
#tool nuget:?package=ExzileGames.AndroidRemoteConfigBridge&version=1.0.24
                    
Install as a Cake Tool

AndroidRemoteConfigBridge

A C# wrapper for Firebase Remote Config on .NET Android. Fixes the Xamarin binding's FetchAndActivateAsync() returning Task<Java.Lang.Object> (a boxed bool) and provides a clean typed API for feature flags and live-ops configuration.

Requirements

  • A google-services.json file placed in your Android project root (set Build Action to GoogleServicesJson).
  • Firebase initialised in your app before calling any bridge methods.

Setup

1. Add project reference

<ProjectReference Include="..\AndroidRemoteConfigBridge\AndroidRemoteConfigBridge.csproj" />

2. Register the implementation in your Activity

using AndroidRemoteConfigBridge.Interop;

protected override void OnCreate(Bundle? savedInstanceState)
{
    base.OnCreate(savedInstanceState);

    RemoteConfigBridgeManager.SetImplementation(new AndroidRemoteConfigBridgeImpl());
}

3. Use from shared code

using AndroidRemoteConfigBridge.Interop;

// Optional: set in-app defaults used before a fetch completes
RemoteConfigBridgeManager.SetDefaults(new Dictionary<string, object>
{
    ["enable_new_feature"] = false,
    ["max_lives"]          = 5L,
    ["difficulty_scale"]   = 1.0,
    ["welcome_message"]    = "Hello!"
});

// Fetch and activate latest values from Firebase
var result = await RemoteConfigBridgeManager.FetchAndActivateAsync();

if (result.Success)
{
    bool featureEnabled = RemoteConfigBridgeManager.GetBool("enable_new_feature");
    long maxLives       = RemoteConfigBridgeManager.GetLong("max_lives");
    double scale        = RemoteConfigBridgeManager.GetDouble("difficulty_scale");
    string message      = RemoteConfigBridgeManager.GetString("welcome_message");
}

// Force an immediate fetch during development (bypasses the 12-hour cache)
var devResult = await RemoteConfigBridgeManager.FetchAndActivateAsync(TimeSpan.Zero);

API

Method Description
FetchAndActivateAsync(TimeSpan?) Fetches latest config and activates it. Pass TimeSpan.Zero to bypass the cache.
SetDefaults(IDictionary<string, object>) Sets in-app defaults used before the first fetch.
GetString(key, defaultValue) Returns a config value as string.
GetBool(key, defaultValue) Returns a config value as bool.
GetLong(key, defaultValue) Returns a config value as long.
GetDouble(key, defaultValue) Returns a config value as double.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-android36.0 is compatible.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.25 104 4/9/2026
1.0.24 109 4/9/2026