Prompt
Why are push notifications failing only on Android?
Latest observation
Nov 17, 2026
OpenAI APIWeb search: off
Android push notifications usually fail for a few common reasons that are specific to the Android delivery path. The most likely causes are:
1) Missing or incorrect FCM setup
If you use Firebase Cloud Messaging:
google-services.jsonmay be missing or from the wrong Firebase project- the Android app package name may not match the Firebase app registration
- the FCM server key / service account credentials may be wrong
2) Notification permission not granted
On Android 13+ (POST_NOTIFICATIONS) is required.
- If the permission isn’t requested or granted, notifications won’t show
- Some devices also have per-app notification toggles disabled in system settings
3) App is in background/killed and only data messages are being sent
If your payload is data-only, Android won’t always display a notification automatically.
- You may need to build and display the notification in app code
- Use a proper
notificationpayload if you want the system to show it
4) Missing notification channel
On Android 8+:
- notifications must be assigned to a valid notification channel
- if the channel isn’t created, notifications can silently fail or not appear
5) Battery optimization / OEM restrictions
Some Android vendors block background delivery aggressively:
- Xiaomi, Huawei, Oppo, Vivo, Samsung, etc.
- battery saver / auto-start restrictions can stop background processing
6) App logic or service issues
If you handle messages in a service:
FirebaseMessagingServicemay not be declared correctly inAndroidManifest.xmlonMessageReceived()may not be triggered for notification payloads when app is backgrounded- a crash in notification handling code can prevent display
7) Invalid target or token
- FCM token may be stale or invalid
- topic subscription may not exist on Android client
- wrong sender ID / project mismatch
Quick checks
- Verify the Android app has the correct Firebase config.
- Confirm notification permission is granted.
- Ensure a notification channel is created.
- Test with a simple FCM notification payload.
- Check Logcat for FCM / notification errors.
- Test on a different Android device and a different OEM.
If you want, I can help you debug this step-by-step if you share:
- your push payload
- Android version
- whether you use FCM/APNs/OneSignal/etc.
- whether notifications fail in foreground, background, or both