This comprehensive guide explains how to implement push notifications in an Expo project using Notifee and Firebase Cloud Messaging (FCM). Since Expo Go does not support custom native modules like Notifee or FCM, you will need to create a custom development client using EAS Build.
npm install @notifee/react-native
npm install @react-native-firebase/app @react-native-firebase/messaging
npx create-expo-app NotificationApp
cd NotificationApp
app.json or app.config.js{
"expo": {
"name": "NotificationApp",
"slug": "notification-app",
"version": "1.0.0",
"platforms": ["android"],
"android": {
"package": "com.notifeedemo.android",
"googleServicesFile": "./google-services.json"
},
"plugins": [
"@notifee/react-native",
"@react-native-firebase/app",
"@react-native-firebase/messaging"
]
}
}
eas.json for development client