laravel-expo-notifier icon indicating copy to clipboard operation
laravel-expo-notifier copied to clipboard

Retry failed notifications

Open JamesHemery opened this issue 2 years ago • 0 comments

It would be nice to implement a retry (exponential backoff) system for failed batched notifications.

For non-batched notifications, it would be necessary to throw an exception or dispatch an event when the notification fails.

We talk about a failed notification when the payload is valid but Expo returns with a error status.

When the payload is invalid, Expo returns a body containing errors field and the Service throw an ExpoNotificationsException.

Also, we could consider dispatching an event when a Ticket or Receipt is in error status.

JamesHemery avatar Dec 12 '22 19:12 JamesHemery