pusher / push-notifications-swift

Swift SDK for the Pusher Beams product:
https://www.pusher.com/beams
MIT License
34 stars 24 forks source link

Implemented additional retry strategy for a "Could not create device"… #183

Closed benjamin-tang-pusher closed 2 years ago

benjamin-tang-pusher commented 2 years ago

… API response, and test for this.

What?

Adds an extra retry case (and test) for our server sending a "Could not create device" error message, so that it follows the same retry strategy as the other unrecoverable cases (such as badDeviceToken, badJWT, or deviceNotFound). Currently it retries forever with exponential backoff, but this isn't a network error, so it isn't recoverable. ...

Why?

A customer has a case where the above error message was making his client infinitely retry. ...