{"id":21903884,"url":"https://github.com/hansemannn/titanium-firebase-config","last_synced_at":"2025-04-15T20:44:43.547Z","repository":{"id":28197832,"uuid":"108639600","full_name":"hansemannn/titanium-firebase-config","owner":"hansemannn","description":"Use the Firebase Remote-Config SDK in the Titanium SDK 🚀","archived":false,"fork":false,"pushed_at":"2025-03-06T09:33:09.000Z","size":14126,"stargazers_count":4,"open_issues_count":1,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-29T01:12:03.825Z","etag":null,"topics":["axway","firebase","firebase-remote-config","javascript","native","titanium"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hansemannn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"hansemannn"}},"created_at":"2017-10-28T10:17:29.000Z","updated_at":"2025-03-06T09:30:47.000Z","dependencies_parsed_at":"2024-11-28T15:32:47.799Z","dependency_job_id":"3a6cc875-f19f-4df2-9f88-b88016fef52e","html_url":"https://github.com/hansemannn/titanium-firebase-config","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Ftitanium-firebase-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Ftitanium-firebase-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Ftitanium-firebase-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansemannn%2Ftitanium-firebase-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hansemannn","download_url":"https://codeload.github.com/hansemannn/titanium-firebase-config/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249152303,"owners_count":21221223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["axway","firebase","firebase-remote-config","javascript","native","titanium"],"created_at":"2024-11-28T15:29:57.987Z","updated_at":"2025-04-15T20:44:43.521Z","avatar_url":"https://github.com/hansemannn.png","language":"Objective-C","funding_links":["https://github.com/sponsors/hansemannn"],"categories":[],"sub_categories":[],"readme":"# Firebase Remote Config - Titanium Module\n\nUse the native Firebase SDK in Axway Titanium. This repository is part of the [Titanium Firebase](https://github.com/hansemannn/titanium-firebase) project.\n\n## Supporting this effort\n\nThe whole Firebase support in Titanium is developed and maintained by the community (`@hansemannn` and `@m1ga`). To keep\nthis project maintained and be able to use the latest Firebase SDK's, please see the \"Sponsor\" button of this repository,\nthank you!\n\n## Requirements\n\n- [x] The [Firebase Core](https://github.com/hansemannn/titanium-firebase-core) module\n- [x] Titanium SDK 10.0.0+\n\n## Download\n\n- [x] [Stable release](https://github.com/hansemannn/titanium-firebase-config/releases)\n- [x] [![gitTio](http://hans-knoechel.de/shields/shield-gittio.svg)](http://gitt.io/component/firebase.config)\n\n## Example Config Manager\n\n```js\nimport TiFirebaseConfig from 'firebase.config';\n\nexport default class ConfigManager {\n\n    static fetch () {\n        TiFirebaseConfig.fetch({\n            callback: event =\u003e {\n                TiFirebaseConfig.activateFetched(); // Activate the fetched values\n            }\n        });\n    }\n\n    static getString(key) {\n      return TiFirebaseConfig.getString(key);\n    }\n\n    static getBool(key) {\n      return TiFirebaseConfig.getBool(key);\n    }\n\n    static getNumber(key) {\n      return TiFirebaseConfig.getNumber(key);\n    }\n}\n```\n\n## API's\n\n### Methods\n\n#### `fetchAndActivate(callback)` (iOS / Android)\n  - `callback` (Function)\n\n#### `setMinimumFetchIntervalInSeconds(minimumFetchInterval)` (iOS / Android)\n  - `minimumFetchInterval` (Number)\n\n#### `activateFetched()` (iOS / Android)\n\n#### `fetch(parameters)` (iOS / Android)\n  - `parameters` (Dictionary)\n    - `callback` (Function)\n    - `expirationDuration` (Number, optional)\n\n#### `configValueForKey(key, namespace) -\u003e Dictionary` (iOS / Android)\n  - `key` (String)\n  - `namespace` (String, optional)\n\n#### `getString(key)` -\u003e String //Use for JSON too\n  - `key` (String)\n\n#### `getBool(key)` -\u003e String\n  - `key` (String)\n\n#### `getNumber(key)` -\u003e String\n  - `key` (String)\n\n### Properties\n\n#### `enableRealtimeUpdates(value: Boolean)`\n\nStart listening for real-time config updates from the Remote Config backend and automatically\nfetch updates when they're available. The result can be listened to via the `update` event.\n\nIf a connection to the Remote Config backend is not already open, calling this method will\nopen it. Multiple listeners can be added by calling this method again, but subsequent calls\nre-use the same connection to the backend.\n\nNote: Real-time Remote Config requires the Firebase Remote Config Realtime API. See Get started\nwith Firebase Remote Config at https://firebase.google.com/docs/remote-config/get-started for\nmore information.\n\n### Events\n\n#### `update`\n  - `keys` (Array\u003cString\u003e) The updated keys.\nFired when a real time config update occurs.\n\n### iOS-only Methods\n\n#### `objectForKeyedSubscript(keyedSubscript) -\u003e Dictionary`\n  - `keyedSubscript` (String)\n\n#### `allKeysFromSource(source, namespace) -\u003e Array\u003cString\u003e`\n  - `source` (`SOURCE_`)\n  - `namespace` (String, optional)\n\n#### `keysWithPrefix(prefix, namespace) -\u003e Array\u003cString\u003e`\n  - `prefix` (String)\n  - `namespace` (String, optional)\n\n#### `setDefaults(defaults, namespace)`\n  - `defaults` (Dictionary)\n  - `namespace` (String, optional)\n\n#### `setDefaultsFromPlist(plistName, namespace)`\n  - `plistName` (Dictionary)\n  - `namespace` (String, optional)\n\n#### `defaultValueForKey(parameters) -\u003e Dictionary`\n  - `key` (String)\n  - `namespace` (String, optional)\n\n#### `getData(key)` -\u003e String\n  - `key` (String)\n\n### iOS-only Properties\n\n#### `lastFetchTime` (Date, get)\n\n#### `lastFetchStatus` (`FETCH_STATUS_*`, get)\n\n### iOS-only Constants\n\n#### `FETCH_STATUS_NO_FETCH_YET`\n#### `FETCH_STATUS_SUCCESS`\n#### `FETCH_STATUS_FAILURE`\n#### `FETCH_STATUS_THROTTLED`\n\n#### `SOURCE_REMOTE`\n#### `SOURCE_DEFAULT`\n#### `SOURCE_STATIC`\n\n## Build\n\n```js\ncd [ios|android]\nappc run -p [ios|android] --build-only\n```\n\n## Legal\n\nThis module is Copyright (c) 2017-present by Hans Knöchel. All Rights Reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansemannn%2Ftitanium-firebase-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansemannn%2Ftitanium-firebase-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansemannn%2Ftitanium-firebase-config/lists"}