YieldStudio / laravel-expo-notifier

Easily manage Expo notifications with Laravel. Support batched notifications.
MIT License
29 stars 11 forks source link

Retry failed notifications #7

Open JamesHemery opened 1 year ago

JamesHemery commented 1 year ago

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.