codedge-llc / pigeon

iOS and Android push notifications for Elixir

Home Page:https://hex.pm/packages/pigeon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Too many provider token updates

andrewtimberlake opened this issue · comments

I’m getting an error response: :too_many_provider_token_updates

The code here shows that token is refreshed every minute instead of “no more than once every 20 minutes” as the APNS documentation requires.

@token_max_age 3_590

Documentation extract

Status code Error string Description
429 TooManyProviderTokenUpdates The provider’s authentication token is being updated too often. Update the authentication token no more than once every 20 minutes.

I’d be happy to submit a pull request to help.

Sorry, there is an obvious mistake in my bug report, 3_590 is just less than one hour 🤦‍♂️ so that’s not the problem.
The problem seems to be that multiple workers should all be using the same token.