initFirebaseAndFcm function

Future<bool> initFirebaseAndFcm({
  1. required NotificationService? notificationService,
  2. required void onDeepLink(
    1. String route
    ),
  3. required bool isAllowedRoute(
    1. 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;
}