firebase-remote-config

Featured

Use when implementing feature flags, running A/B tests, setting parameter defaults, fetching/activating config, or enabling real-time config updates.

API & Backend 619 stars 60 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
93
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Firebase Remote Config Skill This skill defines how to correctly use Firebase Remote Config in Flutter applications. ## When to Use Use this skill when: * Implementing feature flags or remote configuration without deploying app updates. * Managing parameter defaults and fetching remote values. * Implementing real-time config updates for instant changes. * Setting up A/B testing or conditional targeting for user segments. --- ## 1. Setup and Configuration ``` flutter pub add firebase_remote_config flutter pub add firebase_analytics # required for conditional targeting of app instances ``` ```dart import 'package:firebase_remote_config/firebase_remote_config.dart'; final remoteConfig = FirebaseRemoteConfig.instance; ``` - Enable **Google Analytics** in the Firebase project for user property and audience targeting. - Ensure the **Remote Config REST API** is not disabled — the SDK depends on it. - For **macOS**, enable Keychain Sharing in Xcode. **Configure settings:** ```dart await remoteConfig.setConfigSettings(RemoteConfigSettings( fetchTimeout: const Duration(minutes: 1), minimumFetchInterval: const Duration(hours: 1), )); ``` --- ## 2. Parameter Management **Set in-app defaults** (ensures the app behaves as intended before connecting to the backend): ```dart await remoteConfig.setDefaults(const { "feature_new_onboarding": false, "max_retry_attempts": 3, "welcome_message": "Hello, world!", "promo_discount_pct": 0.0, }); ``` **Read values with t...

Details

Author
evanca
Repository
evanca/flutter-ai-rules
Created
1 years ago
Last Updated
today
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category