6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit d2b004bd
Changed files
comwell_key_app/lib/utils/firebase.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Diff
diff --git a/comwell_key_app/lib/utils/firebase.dart b/comwell_key_app/lib/utils/firebase.dart
index 4fba385e..81e6a60c 100644
--- a/comwell_key_app/lib/utils/firebase.dart
+++ b/comwell_key_app/lib/utils/firebase.dart
@@ -15,8 +15,8 @@ Future<void> configureFirebase() async {
'develop' => dev.DefaultFirebaseOptions.currentPlatform,
_ => throw UnsupportedError('Invalid flavor: $appFlavor'),
};
- await Firebase.initializeApp(options: firebaseOptions);
-//TODO: As default the analytics is disabled, but it should be enabled when the user accepts the terms and conditions
+ await Firebase.initializeApp(name: appFlavor, options: firebaseOptions);
+ //TODO: As default the analytics is disabled, but it should be enabled when the user accepts the terms and conditions
FirebaseAnalytics.instance.setAnalyticsCollectionEnabled(true);
FirebaseAnalytics.instance.setConsent(
analyticsStorageConsentGranted: true,
@@ -24,4 +24,4 @@ Future<void> configureFirebase() async {
adUserDataConsentGranted: true,
adPersonalizationSignalsConsentGranted: true,
);
-}
\ No newline at end of file
+}