Closed cbratschi closed 3 years ago
Are you sending these pushes using Parse Server or node-apn directly?
They are sent through @parse/node-apn.
You can increase the timeout using the requestTimeout
option in the config object and/or set your app to retry the message that has timed out.
I only see requestTimeout in the documentation but not in the source code. Is this value still being used and how can it be set?
Well, found it in the source code but somehow GitHub search did not list it. We have a lot of tokens and therefore it will take longer for later tokens. I will try it and update this ticket later.
Set the timeout to 30 s and now the requests work fine.
Recently I am getting this error after sending about 11k push messages of 22k. The app was restarted and the behavior is the same.
It seems the push messages are still processed by Apple.