Skip to content

Enabling automatic retries for FCM API Calls - #266

Merged
hiranya911 merged 10 commits into
masterfrom
hkj-fcm-retry
Apr 19, 2019
Merged

Enabling automatic retries for FCM API Calls#266
hiranya911 merged 10 commits into
masterfrom
hkj-fcm-retry

Conversation

@hiranya911

Copy link
Copy Markdown
Contributor

Enables automatic retries for FCM API calls. Retries are performed on all 500 and 503 responses.

  • Maximum 4 retries (up to a total of 5 attempts per request)
  • Retry delay determined by the Retry-After header when available (but never exceeds 1 minute)
  • Otherwise retries delayed by exponential backoff (500ms, 1s, 2s and 4s respectively)

Continuation of #255

@hiranya911 hiranya911 assigned hiranya911 and unassigned chong-shao Apr 19, 2019
@hiranya911
hiranya911 merged commit 1aa7673 into master Apr 19, 2019
@hiranya911
hiranya911 deleted the hkj-fcm-retry branch April 19, 2019 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants