-
Notifications
You must be signed in to change notification settings - Fork 346
Push Troubleshooting
-
There can be a delay between when you uninstall an app and when Apple will give you back the
410Uninstalled status code. Apple doesn't document what the actual delay is, however we have tested this and seen up to an hour delay. Others have seen as little as 10 mins. -
Until you get a
410Uninstalled response back, Apple will continue to give you a 200 which will look like the push went though (it didn't). -
For Apple to mark old tokens as uninstalled, the app must still be uninstalled. So if for example you install, uninstall and re-install and then send a push, you will have two tokens which both appear to work and will both generate
200status codes when pushed to. -
If you're testing an app using the development push gateway and can't get a
410back even after waiting for hours and hours, this maybe because you need at least one other push enabled development app installed on your device to maintain the connection with APNS. See Apple technical note here and Stack overflow issue here -
Lastly, The timestamp you get back from Apple with the
410is not the exact uninstall date, it's the last date/time that Apple determined that it could not reach the device.
Apple has a limit on the number of push notifications you can send to a single device within a timespan. If you exhaust this limit you will get a Response with a 429 StatusCode and a TooManyRequests Reason description. If you continue to push when you receive that error then the Apple push gateway may treat it as a denial-of-service attack, and temporarily block your server from sending notifications. Usually you just have to wait for an hour or so and the EOF error will resolve itself, and your notifications will start working again.