Initialize firebase and log

This commit is contained in:
Anton Tananaev 2026-02-05 21:19:05 -08:00
parent c143f228fe
commit c4f7ae2a1b
2 changed files with 5 additions and 0 deletions

View file

@ -1,6 +1,7 @@
import 'dart:developer' as developer;
import 'dart:io';
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_crashlytics/firebase_crashlytics.dart';
import 'package:firebase_messaging/firebase_messaging.dart';
import 'package:flutter_background_geolocation/flutter_background_geolocation.dart' as bg;
@ -62,6 +63,7 @@ class PushService {
@pragma('vm:entry-point')
Future<void> pushServiceBackgroundHandler(RemoteMessage message) async {
await Firebase.initializeApp();
await Preferences.init();
await bg.BackgroundGeolocation.ready(Preferences.geolocationConfig());
FirebaseCrashlytics.instance.log('push_background_handler');