inaka / apns4erl

Apple Push Notification Server for Erlang
http://inaka.github.com/apns4erl
369 stars 215 forks source link

apns status "missing_payload_size" #161

Open simonxuhao opened 7 years ago

simonxuhao commented 7 years ago

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 commented 7 years ago

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?