Xam.Plugin.FirebaseRemoteConfig 1.0.1.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Xam.Plugin.FirebaseRemoteConfig --version 1.0.1.2                
NuGet\Install-Package Xam.Plugin.FirebaseRemoteConfig -Version 1.0.1.2                
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="Xam.Plugin.FirebaseRemoteConfig" Version="1.0.1.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xam.Plugin.FirebaseRemoteConfig --version 1.0.1.2                
#r "nuget: Xam.Plugin.FirebaseRemoteConfig, 1.0.1.2"                
#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.
// Install Xam.Plugin.FirebaseRemoteConfig as a Cake Addin
#addin nuget:?package=Xam.Plugin.FirebaseRemoteConfig&version=1.0.1.2

// Install Xam.Plugin.FirebaseRemoteConfig as a Cake Tool
#tool nuget:?package=Xam.Plugin.FirebaseRemoteConfig&version=1.0.1.2                

Xamarin.Plugin.Firebase.RemoteConfig

Cross-platform library for using Firebase RemoteConfig in Xamarin Forms applications.

Platform support

This plugin is compatible with iOS and Android.

Project url

https://github.com/smarongiu/Xamarin.Plugin.Firebase.RemoteConfig

Quickstart

Setup

API Usage

Call CrossFirebaseRemoteConfig.Current from PCL or client code to use APIs.

/// <summary>
/// Initializes the service.
/// </summary>
/// <param name="defaultConfigResourceName">If set, load defaults from this resource</param>
/// <param name="developerModeEnabled">If set to <c>true</c> developer mode is enabled.</param>
void Init(string defaultConfigResourceName = null, bool developerModeEnabled = false);

/// <summary>
/// Initializes the service without default config.
/// </summary>
/// <param name="developerModeEnabled">If set to <c>true</c> developer mode is enabled.</param>
void Init(bool developerModeEnabled = false);

/// <summary>
/// Fetchs the remote config.
/// </summary>
/// <param name="cacheExpiration">Cache expiration in seconds.</param>
/// <exception cref="FirebaseRemoteConfigFetchFailedException">when fetch fails.</exception>
Task FetchAsync(long cacheExpiration);

/// <summary>
/// Activates the last fetched config.
/// </summary>
void ActivateFetched();

/// <summary>
/// Gets the value with specified key as string.
/// </summary>
string GetString(string key);

/// <summary>
/// Gets the value with specified key as byte array.
/// </summary>
byte[] GetBytes(string key);

/// <summary>
/// Gets the value with specified key as boolean.
/// </summary>
bool GetBool(string key);

/// <summary>
/// Gets the value with specified key as long.
/// </summary>
long GetLong(string key);

/// <summary>
/// Gets the value with specified key as double.
/// </summary>
double GetDouble(string key);

/// <summary>
/// Gets all keys by prefix.
/// </summary>
ICollection<string> GetKeysByPrefix(string prefix);

iOS

  • From the Firebase Console, add your iOS app to your project.
  • Download and add the generated GoogleService-Info.plist file to your app in the root folder and mark it as "BundleResource".
  • Add this line to AppDelegate.cs:
Firebase.Core.App.Configure();
CrossFirebaseRemoteConfig.Current.Init("my_config_defaults");
  • you can add a default config file as a plist, put it in the root folder and mark it as "BundleResource".

Android

  • From the Firebase Console, add your Android app to your project.
  • Download and add the generated google-services.json file to your app in the root folder and mark it as "GoogleServicesJson".
  • Add the nuget package https://github.com/jamesmontemagno/CurrentActivityPlugin and add these lines to MainActivity.cs, after <code>base.OnCreate(bundle)</code>:
CrossCurrentActivity.Current.Init(Application);
Firebase.FirebaseApp.InitializeApp(this);
CrossFirebaseRemoteConfig.Current.Init("my_config_defaults");
  • you can add a default config file as xml resource (under Resources/xml).

License

Licensed under MIT, see license file.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed.  monoandroid10 is compatible. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed.  monotouch10 is compatible. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed.  xamarinios10 is compatible. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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.8 5,892 2/5/2020
1.0.3 5,475 9/21/2018
1.0.1.2 829 9/21/2018