initRemoteConfig function

Future<void> initRemoteConfig()

Binds Remote Config to the app already initialized by initDatabase.

Asynchronous because the SDK's values are only meaningful once the last activated config has been brought into memory.

Implementation

Future<void> initRemoteConfig() {
  ensureLibraryLoaded();
  if (!hasFirebase) {
    return Future.error(StateError('this build has no Firebase SDK'));
  }
  return _awaitOutcome(fdbRcInit, 'initRemoteConfig');
}