Prompt
What do I do if push notifications work in test but fail in production?
Latest observation
Nov 4, 2026
OpenAI APIWeb search: off
If push notifications work in test but fail in production, treat it as a configuration/environment mismatch until proven otherwise. Here’s a practical checklist:
1) Compare test vs production settings
Check for differences in:
- App bundle/package ID
- Push certificates / APNs auth key / FCM configuration
- Environment (
developmentvsproduction) - Server API keys / credentials
- Notification payload format
2) Verify production push credentials
Common issues:
- Using a sandbox certificate/token in production
- Expired or revoked certificates
- Wrong APNs key/team ID/topic
- Incorrect Firebase project or
google-services.json/GoogleService-Info.plist
3) Confirm device token registration
Make sure production devices:
- Are receiving a valid token
- That token is being sent to your backend
- Your backend is storing the latest token
- You’re not accidentally sending notifications to an old token
4) Check logs and error responses
Look at:
- Backend push provider response codes
- APNs/FCM error messages
- Mobile app logs for registration failures
- Network or permission errors
5) Validate notification payloads
Production payloads may differ from test and fail due to:
- Missing required fields
- Invalid JSON
- Wrong
apns-push-type,priority, orcontent-available - Incorrect title/body/data structure
6) Confirm app permissions and OS behavior
On real production devices:
- Notifications are allowed
- Focus/Do Not Disturb isn’t suppressing them
- Background restrictions aren’t blocking delivery
- App isn’t being force-killed in a way that affects delivery expectations
7) Check environment-specific routing
Sometimes test works because it uses:
- A staging server
- A test topic/channel
- A dev push gateway
Production may be pointed at:
- A different endpoint
- A different topic
- The wrong app identifier
8) Test with a known-good push
Send a minimal push payload to a real production device:
- Simple alert
- No custom data
- Direct from provider console or curl If that fails too, it’s likely credentials or token/environment related.
9) Watch for certificate/topic mismatches
For iOS especially, the topic must match the production app bundle ID. For Android, ensure the package name and Firebase project match the production app.
10) Add monitoring
If this is recurring, add:
- Delivery success/failure logging
- Token refresh tracking
- Alerting on push provider errors
- Dashboards for send rates and failure rates
If you want, I can give you a platform-specific troubleshooting guide for iOS (APNs) or Android (FCM).