[remote_config] Select a specific FirebaseApp #5576
Answered
by
aidanm1999
nthungdev
asked this question in
Feature request
-
My Android and iOS app is using multiple FirebaseApp. Unlike the Firestore and FirebaseAuth plugins, RemoteConfig doesn't have an api to select which FirebaseApp to use. I understand RemoteConfig must be initialize in the beginning, but it only initialize with the default FirebaseApp. A potential syntax can be like below. _remoteConfig = await RemoteConfig.initialize(name: <FirebaseApp name>); |
Beta Was this translation helpful? Give feedback.
Answered by
aidanm1999
Apr 27, 2021
Replies: 1 comment 1 reply
-
Hi @nthungdev I think this has now been added. If you go to the FlutterFire docs, you should be able to now add remote config for a specific app as follows: FirebaseApp secondaryApp = Firebase.app('SecondaryApp');
FirebaseRemoteConfig remoteConfig = FirebaseRemoteConfig.instanceFor(app: secondaryApp); Hope this helps! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nthungdev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @nthungdev I think this has now been added. If you go to the FlutterFire docs, you should be able to now add remote config for a specific app as follows:
Hope this helps!