Push delivery now handles each kind of failure in the right way:
- Temporary failures retry for up to 24 hours. When the push service is busy or down, PushFire tries again with a longer wait each time, up to 15 minutes between tries.
- Expired tokens stop getting pushes. When the push service reports that a device's token is no longer valid, PushFire marks the device and skips it in later sends. The device stays in your project. It gets pushes again as soon as your app registers it or updates its token.
- Other errors fail at once. A bad message or a credentials problem fails without retries, so you see the error sooner.
In the console:
- A device with an expired token shows a Token expired badge on the subscriber's Devices tab.
- When a workflow push step reaches a subscriber with no device that can get a push, the step shows Skipped, not Failed. Past steps of this kind now show Skipped too.
To keep tokens fresh, register or update the device each time your app starts. The latest Flutter (0.4.0) and Swift (0.2.0) SDKs do this for you once a day.