HOW IT WORKS
1. Configure your Firebase project
Associate your Android app with a Firebase project and set up the FCM SDK. Your app receives a registration token that can change during its lifecycle.
2. Request user permission correctly
Modern Android versions require notification permission for most non-exempt notifications. Explain the value before prompting and handle denial respectfully.
3. Send from a trusted backend
Never put service account credentials in the app. Your trusted server authenticates to FCM and targets device tokens or supported audiences.
4. Treat acceptance as a milestone
FCM HTTP success indicates acceptance by FCM, not guaranteed display. Android background restrictions, permissions, device settings and expiry affect final outcomes.