mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-24 08:20:40 +00:00
ML-134 Firebase Remote Config issues (#150)
* added try-catch to config fetch
This commit is contained in:
parent
2b2a5441c7
commit
85c409fbe8
1 changed files with 9 additions and 3 deletions
|
@ -52,9 +52,15 @@ class RemoteConfigService implements IRemoteConfigService {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> fetchConfig() async {
|
Future<void> fetchConfig() async {
|
||||||
// https://github.com/firebase/flutterfire/issues/6196#issuecomment-927751667
|
try {
|
||||||
await Future.delayed(const Duration(seconds: 1));
|
// https://github.com/firebase/flutterfire/issues/6196#issuecomment-927751667
|
||||||
await FirebaseRemoteConfig.instance.fetch();
|
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
|
@override
|
||||||
|
|
Loading…
Reference in a new issue