{"id":13710343,"url":"https://github.com/smarongiu/Xamarin.Plugin.Firebase.RemoteConfig","last_synced_at":"2025-05-06T19:30:48.441Z","repository":{"id":81320516,"uuid":"149471357","full_name":"smarongiu/Xamarin.Plugin.Firebase.RemoteConfig","owner":"smarongiu","description":"Xamarin Forms bindings for Firebase RemoteConfig","archived":false,"fork":false,"pushed_at":"2021-07-18T12:21:12.000Z","size":365,"stargazers_count":7,"open_issues_count":2,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-13T20:40:43.014Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smarongiu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-19T15:21:59.000Z","updated_at":"2022-05-11T16:46:06.000Z","dependencies_parsed_at":"2023-04-05T09:56:31.428Z","dependency_job_id":null,"html_url":"https://github.com/smarongiu/Xamarin.Plugin.Firebase.RemoteConfig","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smarongiu%2FXamarin.Plugin.Firebase.RemoteConfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smarongiu%2FXamarin.Plugin.Firebase.RemoteConfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smarongiu%2FXamarin.Plugin.Firebase.RemoteConfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smarongiu%2FXamarin.Plugin.Firebase.RemoteConfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smarongiu","download_url":"https://codeload.github.com/smarongiu/Xamarin.Plugin.Firebase.RemoteConfig/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252753190,"owners_count":21798930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T23:00:54.719Z","updated_at":"2025-05-06T19:30:48.044Z","avatar_url":"https://github.com/smarongiu.png","language":"C#","funding_links":[],"categories":["Plugins"],"sub_categories":[],"readme":"# Xamarin.Plugin.Firebase.RemoteConfig\nCross-platform library for using Firebase RemoteConfig in Xamarin Forms applications.\nThe plugin provides a simple facade to official Xamarin bindings for Firebase native libs.\n\n## Platform support\nThis plugin is compatible with iOS and Android.\n\n## Quickstart\n\n### Setup\n- Setup your Firebase project on https://console.firebase.google.com\n- NuGet package available: https://www.nuget.org/packages/Xam.Plugin.FirebaseRemoteConfig\n- Install the nuget package into your PCL/Forms project and client projects.\n\n### API Usage\nCall **CrossFirebaseRemoteConfig.Current** from PCL or client code to use APIs.\n```csharp\n/// \u003csummary\u003e\n/// Initializes the service.\n/// \u003c/summary\u003e\n/// \u003cparam name=\"defaultConfigResourceName\"\u003eIf set, load defaults from this resource\u003c/param\u003e\n/// \u003cparam name=\"developerModeEnabled\"\u003eIf set to \u003cc\u003etrue\u003c/c\u003e developer mode is enabled.\u003c/param\u003e\nvoid Init(string defaultConfigResourceName = null, bool developerModeEnabled = false);\n\n/// \u003csummary\u003e\n/// Initializes the service without default config.\n/// \u003c/summary\u003e\n/// \u003cparam name=\"developerModeEnabled\"\u003eIf set to \u003cc\u003etrue\u003c/c\u003e developer mode is enabled.\u003c/param\u003e\nvoid Init(bool developerModeEnabled = false);\n\n/// \u003csummary\u003e\n/// Fetchs the remote config.\n/// \u003c/summary\u003e\n/// \u003cparam name=\"cacheExpiration\"\u003eCache expiration in seconds.\u003c/param\u003e\n/// \u003cexception cref=\"FirebaseRemoteConfigFetchFailedException\"\u003ewhen fetch fails.\u003c/exception\u003e\nTask FetchAsync(long cacheExpiration);\n\n/// \u003csummary\u003e\n/// Activates the last fetched config.\n/// \u003c/summary\u003e\nvoid ActivateFetched();\n\n/// \u003csummary\u003e\n/// Gets the value with specified key as string.\n/// \u003c/summary\u003e\nstring GetString(string key);\n\n/// \u003csummary\u003e\n/// Gets the value with specified key as byte array.\n/// \u003c/summary\u003e\nbyte[] GetBytes(string key);\n\n/// \u003csummary\u003e\n/// Gets the value with specified key as boolean.\n/// \u003c/summary\u003e\nbool GetBool(string key);\n\n/// \u003csummary\u003e\n/// Gets the value with specified key as long.\n/// \u003c/summary\u003e\nlong GetLong(string key);\n\n/// \u003csummary\u003e\n/// Gets the value with specified key as double.\n/// \u003c/summary\u003e\ndouble GetDouble(string key);\n\n/// \u003csummary\u003e\n/// Gets all keys by prefix.\n/// \u003c/summary\u003e\nICollection\u003cstring\u003e GetKeysByPrefix(string prefix);\n```\n\n### iOS\n- From the Firebase Console, add your iOS app to your project. \n- Download and add the generated GoogleService-Info.plist file to your app in the root folder and mark it as \"BundleResource\".\n- Add this line to AppDelegate.cs: \n```csharp\nFirebase.Core.App.Configure();\nCrossFirebaseRemoteConfig.Current.Init(\"my_config_defaults\");\n``` \n- you can add a default config file as a plist, put it in the root folder and mark it as \"BundleResource\".\n\n### Android\n- From the Firebase Console, add your Android app to your project. \n- Download and add the generated google-services.json file to your app in the root folder and mark it as \"GoogleServicesJson\".\n- Add the nuget package https://www.nuget.org/packages/Plugin.CurrentActivity and follow installation guide.\n- Add these lines to MainActivity.cs, after \u003ccode\u003ebase.OnCreate(bundle)\u003c/code\u003e:\n```csharp\nFirebase.FirebaseApp.InitializeApp(this);\nCrossFirebaseRemoteConfig.Current.Init(\"my_config_defaults\");\n```\n- you can add a default config file as xml resource (under Resources/xml). \n\n## License\nLicensed under MIT, see license file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmarongiu%2FXamarin.Plugin.Firebase.RemoteConfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmarongiu%2FXamarin.Plugin.Firebase.RemoteConfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmarongiu%2FXamarin.Plugin.Firebase.RemoteConfig/lists"}