Guide
Tutorial on Firebase Remote Config
Using @capgo/capacitor-firebase-remote-config
Capacitor plugin for Firebase Remote Config.
Install
bun add @capgo/capacitor-firebase-remote-config
bunx cap sync
What This Plugin Exposes
activate- Make the last fetched configuration available to the getters.fetchAndActivate- Perform fetch and activate operations.fetchConfig- Fetch and cache configuration from the Remote Config service.getBoolean- Get the value for the given key as a boolean.
Example Usage
activate
Make the last fetched configuration available to the getters.
import { FirebaseRemoteConfig } from '@capgo/capacitor-firebase-remote-config';
await FirebaseRemoteConfig.activate();
fetchAndActivate
Perform fetch and activate operations.
import { FirebaseRemoteConfig } from '@capgo/capacitor-firebase-remote-config';
await FirebaseRemoteConfig.fetchAndActivate();
fetchConfig
Fetch and cache configuration from the Remote Config service.
import { FirebaseRemoteConfig } from '@capgo/capacitor-firebase-remote-config';
await FirebaseRemoteConfig.fetchConfig();
getBoolean
Get the value for the given key as a boolean.
import { FirebaseRemoteConfig } from '@capgo/capacitor-firebase-remote-config';
await FirebaseRemoteConfig.getBoolean({} as GetBooleanOptions);
Full Reference
- GitHub: https://github.com/Cap-go/capacitor-firebase/tree/main/packages/remote-config
- Docs: /docs/plugins/firebase-remote-config/
Keep going from Using @capgo/capacitor-firebase-remote-config
If you are using Using @capgo/capacitor-firebase-remote-config to plan native plugin work, connect it with Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, Adding or Updating Plugins for the implementation detail in Adding or Updating Plugins, Ionic Enterprise Plugin Alternatives for the product workflow in Ionic Enterprise Plugin Alternatives, and Capgo Native Builds for the product workflow in Capgo Native Builds.