Need help upgrading to Ionic Framework 4.0? Get assistance with our Enterprise Migration Services EXPLORE NOW

Firebase Configβ

Improve this doc

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

  1. Install the Cordova and Ionic Native plugins:
    $ ionic cordova plugin add cordova-plugin-firebase-config
    $ npm install --save @ionic-native/firebase-config@4
    
  2. Add this plugin to your app's module

Supported platforms

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>

API

Native

General