Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apns status "missing_payload_size" #161

Open
simonxuhao opened this issue Apr 17, 2017 · 1 comment
Open

apns status "missing_payload_size" #161

simonxuhao opened this issue Apr 17, 2017 · 1 comment

Comments

@simonxuhao
Copy link

I'm using 1.0.6-final, sometimes the error_fun of the apns_connection will be called with apns:status() "missing_payload_size".

I checked my code of sending apns messages but couldn't find anything wrong.

What is the cause of this error? How to avoid it?

Thanks

@ferigis
Copy link
Member

ferigis commented Apr 18, 2017

Hi @Nestor5, thanks for your feedback.
Taking a look on the code, missing_payload_size error refers to Invalid payload size error (code 7). As you are using the legacy APNs binary interface the maxim payload size is 2KB. Do you know if that could be the problem? could you check it?

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

No branches or pull requests

2 participants