device_invalid
The device is no longer valid. HTTP 409
What it means
A test push went to a device Apple has said is gone (uninstalled, or a token for the other environment). It can't receive pushes.
What to do
Run the app on the device again so it registers a fresh token, then send the test to the new device.
Example
{
"error": {
"code": "device_invalid",
"message": "The device is no longer valid",
"docUrl": "https://docs.pushwren.com/errors/device_invalid"
}
}Every error has this shape. The message says what went wrong in this case; docUrl links here. See all errors.