Firebase Configβ
This plugin is still in beta stage and may not work as expected. Please submit any issues to the plugin repo.
Cordova plugin for Firebase Config
Repo: https://github.com/chemerisuk/cordova-plugin-firebase-config
Installation
- Install the Cordova and Ionic Native plugins:
$ ionic cordova plugin add cordova-plugin-firebase-config $ npm install --save @ionic-native/firebase-config@4
- Add this plugin to your app's module
Supported platforms
- Android
- iOS
Usage
import { FirebaseConfig } from '@ionic-native/firebase-config';
constructor(private firebaseConfig: FirebaseConfig) { }
...
this.firebaseConfig.getBoolean('my_key')
.then((res: any) => console.log(res))
.catch((error: any) => console.error(error));
Instance Members
update(ttlSeconds)
Fetches remote config values with appropriate TTL and then activates them.
Param | Type | Details |
---|---|---|
ttlSeconds |
number
|
Returns: Promise<null>