20 lines
717 B
TypeScript
20 lines
717 B
TypeScript
// Suppress React Native Firebase modular deprecation warnings until migration is complete.
|
|
// See https://rnfirebase.io/migrating-to-v22
|
|
//@ts-ignore
|
|
globalThis.RNFB_SILENCE_MODULAR_DEPRECATION_WARNINGS = true;
|
|
|
|
// Import side effects first and services
|
|
|
|
// Initialize services
|
|
|
|
// Register app entry through Expo Router
|
|
import 'expo-router/entry';
|
|
import "./global.css";
|
|
|
|
// Set up FCM background message handler (must be registered at the top level)
|
|
import messaging from '@react-native-firebase/messaging';
|
|
|
|
messaging().setBackgroundMessageHandler(async (remoteMessage) => {
|
|
console.log('Background FCM message received:', remoteMessage);
|
|
// Background messages are handled automatically by the system
|
|
}); |