Use the native Firebase SDK in Axway Titanium. This repository is part of the Titanium Firebase project.
The whole Firebase support in Titanium is developed and maintained by the community (@hansemannn
and @m1ga
). To keep
this project maintained and be able to use the latest Firebase SDK's, please see the "Sponsor" button of this repository,
thank you!
- The Firebase Core module
- Titanium SDK 10.0.0+
import TiFirebaseConfig from 'firebase.config';
export default class ConfigManager {
static fetch () {
TiFirebaseConfig.fetch({
callback: event => {
TiFirebaseConfig.activateFetched(); // Activate the fetched values
}
});
}
static getString(key) {
return TiFirebaseConfig.getString(key);
}
static getBool(key) {
return TiFirebaseConfig.getBool(key);
}
static getNumber(key) {
return TiFirebaseConfig.getNumber(key);
}
}
callback
(Function)
minimumFetchInterval
(Number)
parameters
(Dictionary)callback
(Function)expirationDuration
(Number, optional)
key
(String)namespace
(String, optional)
key
(String)
key
(String)
key
(String)
Start listening for real-time config updates from the Remote Config backend and automatically
fetch updates when they're available. The result can be listened to via the update
event.
If a connection to the Remote Config backend is not already open, calling this method will open it. Multiple listeners can be added by calling this method again, but subsequent calls re-use the same connection to the backend.
Note: Real-time Remote Config requires the Firebase Remote Config Realtime API. See Get started with Firebase Remote Config at https://firebase.google.com/docs/remote-config/get-started for more information.
keys
(Array) The updated keys. Fired when a real time config update occurs.
keyedSubscript
(String)
source
(SOURCE_
)namespace
(String, optional)
prefix
(String)namespace
(String, optional)
defaults
(Dictionary)namespace
(String, optional)
plistName
(Dictionary)namespace
(String, optional)
key
(String)namespace
(String, optional)
key
(String)
cd [ios|android]
appc run -p [ios|android] --build-only
This module is Copyright (c) 2017-present by Hans KnΓΆchel. All Rights Reserved.