Generated Firebase Remote Config Utility Never Refreshes After Initial Fetch

Troubleshooting

I configured Firebase Remote Config, and FlutterFlow generated the following utility file. On app launch, fetchAndActivate() is called, and I get the default (or console) values correctly. However, after that initial activation, I never see any subsequent updates. Fetch/activate only runs once, and no code re-triggers on a later launch or after the interval. It appears that FlutterFlow is not automatically calling fetchAndActivate() again.

import 'package:firebase_remote_config/firebase_remote_config.dart';

Future initializeFirebaseRemoteConfig() async {
  try {
    await FirebaseRemoteConfig.instance.setConfigSettings(RemoteConfigSettings(
      fetchTimeout: const Duration(minutes: 1),
      minimumFetchInterval: const Duration(hours: 1),
    ));
    await FirebaseRemoteConfig.instance.setDefaults(const {
      'parameter1': '...',
      'parameter2': '...',
    });
    // This runs exactly once, on initialization
    await FirebaseRemoteConfig.instance.fetchAndActivate();
  } catch (error) {
    print(error);
  }
}

String getRemoteConfigString(String key) =>
    FirebaseRemoteConfig.instance.getString(key);

bool getRemoteConfigBool(String key) =>
    FirebaseRemoteConfig.instance.getBool(key);

int getRemoteConfigInt(String key) =>
    FirebaseRemoteConfig.instance.getInt(key);

double getRemoteConfigDouble(String key) =>
    FirebaseRemoteConfig.instance.getDouble(key);

As far as I can tell, FlutterFlow hasn’t generated any code that calls fetch() or fetchAndActivate() again after initializeFirebaseRemoteConfig(). According to Firebase’s docs, you must invoke fetch() (or fetchAndActivate()) again when you want to pick up new values once the minimum fetch interval passes. Since I don’t see any repeated invocation, I believe either:

  1. I’m missing a step in FlutterFlow’s Remote Config setup, or

  2. This is a bug in FlutterFlow’s Remote Config integration.

Could someone confirm whether FlutterFlow intends to automatically re-fetch/activate once the interval has elapsed? If not, where is the correct place to report this as a bug? Thanks!

What have you tried so far?
  • Verified that on first launch, fetchAndActivate() (generated by FlutterFlow) succeeds and activates defaults or console values.

  • Edited initializeFirebaseRemoteConfig to use minimumFetchInterval: Duration.zero—still saw no automatic refresh on subsequent launches.

  • Added my own FirebaseRemoteConfig.instance.fetchAndActivate() call before every config get, and confirmed that forcing a manual fetch does retrieve updated values (so Remote Config itself is working).

  • Searched the entire FlutterFlow-generated codebase for any other calls to fetch() or fetchAndActivate()—couldn’t find any.

  • Ensured my app is built from the latest FlutterFlow version and redeployed remote config defaults in the Firebase console.

Did you check FlutterFlow's Documentation for this topic?
Yes