The push notification error you're seeing:
Default FirebaseApp is not initialized in this process com.yazinai.micapp.
Make sure to call FirebaseApp.initializeApp(Context) first.
This happens because Android push notifications require Firebase Cloud Messaging (FCM) configuration.
- Go to Firebase Console
- Create a new project or select an existing one
- Click "Add app" → Android
- Enter package name:
com.yazinsai.micapp - Download
google-services.json
# Place the downloaded file at the project root
mv ~/Downloads/google-services.json /Users/rock/projects/mic-app/Add the googleServicesFile configuration to the Android section:
{
"expo": {
"android": {
"googleServicesFile": "./google-services.json",
...
}
}
}- In Firebase Console → Project settings → Service accounts
- Click "Generate New Private Key"
- Run:
eas credentials -p android - Select: Google Service Account → Upload JSON
# For preview/testing
eas build -p android --profile preview
# For production
eas build -p android --profile productionAfter the build completes, install the new APK/AAB on your device.
The google-services.json file is processed at build time and compiled into the native Android app. It configures Firebase at the native level, which can't be changed via JavaScript/OTA updates.