initFirebaseAndFcm function
- required NotificationService? notificationService,
- required void onDeepLink(
- String route
- required bool isAllowedRoute(
- String route
Web stub for FCM setup.
On web, Firebase / FCM aren't useful (no background push, no native
notifications) and pulling firebase_core + firebase_messaging
into the JS bundle costs ~150–250 KB. This stub is selected via
conditional import in fcm_setup_barrel.dart so the real
implementation is never compiled into main.dart.js.
Implementation
Future<bool> initFirebaseAndFcm({
required NotificationService? notificationService,
required void Function(String route) onDeepLink,
required bool Function(String route) isAllowedRoute,
}) async {
return false;
}