Prompt
Why are my push notification tokens becoming invalid?
Latest observation
Oct 14, 2026
OpenAI APIWeb search: off
Push notification tokens can become invalid for several normal reasons, and usually it’s not a bug in your app. The exact reasons depend on the platform, but the common causes are:
Common reasons tokens become invalid
- App reinstall / device reset: Reinstalling the app or resetting the device often generates a new token.
- Token rotation by the OS/vendor: APNs (iOS) and FCM (Android) can refresh tokens periodically for security or service changes.
- User changed notification settings / account state: Some services may invalidate tokens if the app’s push permissions or associated account changes.
- App updated or bundle/config changed: Changes to bundle ID, signing key, Firebase project, or push credentials can invalidate previously issued tokens.
- Expired or revoked credentials on your server: If your APNs key/certificate or FCM credentials are wrong/outdated, delivery may fail and look like token invalidation.
- Device no longer reachable: For APNs in particular, tokens can become “unregistered” if the app is removed from the device.
- Provider-specific cleanup: FCM/APNs will eventually reject tokens that are no longer valid and return errors like
NotRegistered,InvalidRegistration, orUnregistered.
Platform specifics
- iOS/APNs: Tokens are device- and app-specific and can change after restore, reinstall, OS changes, or Apple-side rotation.
- Android/FCM: FCM registration tokens can rotate and become invalid after app reinstall, data clear, or Firebase-side token refresh.
What you should do
- Always update your backend when you receive a new token
- Handle invalid-token errors by deleting the old token
- Re-register for push when the app starts
- Make sure your push credentials are current
- Log delivery failures so you can distinguish:
- invalid token
- bad credentials
- transient network/provider issues
Practical rule
Treat push tokens as temporary identifiers, not permanent user IDs.
If you want, I can help you diagnose this for iOS/APNs, Android/FCM, or a specific stack like Expo, React Native, Firebase, or OneSignal.