ML-134 Firebase Remote Config issues (#150)

* added try-catch to config fetch
This commit is contained in:
Vadim 2024-01-15 23:13:26 +01:00 committed by GitHub
parent 2b2a5441c7
commit 85c409fbe8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,9 +52,15 @@ class RemoteConfigService implements IRemoteConfigService {
@override
Future<void> fetchConfig() async {
try {
// https://github.com/firebase/flutterfire/issues/6196#issuecomment-927751667
await Future.delayed(const Duration(seconds: 1));
await FirebaseRemoteConfig.instance.fetch();
} on FirebaseException catch (e) {
_logError('Firebase exception during Firebase Remote Config fetch: $e');
} catch (e) {
_logError('Error during Firebase Remote Config fetch: $e');
}
}
@override