ExzileGames.AndroidRemoteConfigBridge
1.0.24
There is a newer version of this package available.
See the version list below for details.
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" />
<PackageReference Include="ExzileGames.AndroidRemoteConfigBridge" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=ExzileGames.AndroidRemoteConfigBridge&version=1.0.24
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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.jsonfile placed in your Android project root (set Build Action toGoogleServicesJson). - 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 | Versions 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.
-
net10.0
- No dependencies.
-
net10.0-android36.0
- Xamarin.Firebase.Config (>= 123.0.1.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.