data/services/fcm_setup_barrel library
Conditional-import barrel for initFirebaseAndFcm. Native (iOS /
Android) builds export the real implementation from fcm_setup.dart;
web builds get the no-op stub from fcm_setup_stub.dart. Always
import this barrel — never the underlying files — so platform
branching stays invisible to callers and the firebase_* packages
never reach the web JS bundle.
Functions
-
initFirebaseAndFcm(
{required NotificationService? notificationService, required void onDeepLink(String route), required bool isAllowedRoute(String route)}) → Future< bool> - Boots Firebase + FCM and wires up the deep-link handlers used by push notifications. Returns whether Firebase came up successfully — callers gate downstream work (e.g. token registration) on the result.