diff --git a/src/@ionic-native/plugins/firebase-config/index.ts b/src/@ionic-native/plugins/firebase-config/index.ts index 5c28ddd39..64a8f09be 100644 --- a/src/@ionic-native/plugins/firebase-config/index.ts +++ b/src/@ionic-native/plugins/firebase-config/index.ts @@ -28,18 +28,38 @@ import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; plugin: 'cordova-plugin-firebase-config', pluginRef: 'cordova.plugins.firebase.config', repo: 'https://github.com/chemerisuk/cordova-plugin-firebase-config', - platforms: ['Android', 'iOS'] + platforms: ['Android', 'iOS'], }) @Injectable() export class FirebaseConfig extends IonicNativePlugin { /** - * Fetches remote config values with appropriate TTL and then activates them. + * Starts fetching configs, adhering to the specified minimum fetch interval. * - * @param {number} ttlSeconds + * @param {number} expirationDuration * @returns {Promise} */ @Cordova({ sync: true }) - update(ttlSeconds: number): Promise { + fetch(expirationDuration?: number): Promise { + return; + } + + /** + * Asynchronously activates the most recently fetched configs, so that the fetched key value pairs take effect. + * + * @returns {Promise} + */ + @Cordova({ sync: true }) + activate(): Promise { + return; + } + + /** + * Asynchronously fetches and then activates the fetched configs. + * + * @returns {Promise} + */ + @Cordova({ sync: true }) + fetchAndActivate(): Promise { return; } @@ -47,11 +67,10 @@ export class FirebaseConfig extends IonicNativePlugin { * Fetches a boolean configuration value from RemoteConfig * * @param {string} key - * @param {string} [namespace] * @returns {Promise} */ @Cordova({ sync: true }) - getBoolean(key: string, namespace?: string): Promise { + getBoolean(key: string): Promise { return; } @@ -59,11 +78,10 @@ export class FirebaseConfig extends IonicNativePlugin { * Fetches a string configuration value from RemoteConfig * * @param {string} key - * @param {string} [namespace] * @returns {Promise} */ @Cordova({ sync: true }) - getString(key: string, namespace?: string): Promise { + getString(key: string): Promise { return; } @@ -71,11 +89,10 @@ export class FirebaseConfig extends IonicNativePlugin { * Fetches a numeric configuration value from RemoteConfig * * @param {string} key - * @param {string} [namespace] * @returns {Promise} */ @Cordova({ sync: true }) - getNumber(key: string, namespace?: string): Promise { + getNumber(key: string): Promise { return; } @@ -83,11 +100,10 @@ export class FirebaseConfig extends IonicNativePlugin { * Fetches an array of bytes configuration value from RemoteConfig * * @param {string} key - * @param {string} [namespace] * @returns {Promise} */ @Cordova({ sync: true }) - getBytes(key: string, namespace?: string): Promise { + getBytes(key: string): Promise { return; } }