-
Notifications
You must be signed in to change notification settings - Fork 19
HTTP/2 API support #23
Comments
Hello @karunreddy30, Could you please tell me what ejabberd version are you on? And mod_apns's git branch name. |
Thanks for getting back.
|
Please run an unmodified version so I could trace errors to their lines. |
I ran with the unmodified version and here is the log. The FORMAT_ERROR might be because I changed DEBUG to INFO_MSG. 2017-12-21 01:54:59.970 [info] <0.29373.2>@mod_apns:send_payload:35 FORMAT ERROR: "Trying to send payload with these parameters: Address: ~s Port: ~s Cert: ~s Keyfile: ~s Password ~s" ["gateway.sandbox.push.apple.com",2195,<<"/home/karunreddy30/voip-dev/voip-dev-cert.pem">>,<<"/home/karunreddy30/voip-dev/voip-dev-key-noenc.pem">>,undefined]
2017-12-21 01:55:00.067 [info] <0.29373.2>@mod_apns:send_payload:58 Successfully sent payload to the APNS server
2017-12-21 01:55:01.210 [info] <0.29373.2>@mod_apns:message:84 Offline message |
Just an FYI - I've verified the notifications through curl command and they seem to work. The only thing extra I sent as part of curl is the "apns-topic". Wondering if there is a way to include that as part of ssl:send? Here is the curl command I used: |
I'm not an Apple user/developer. Was there a change to the APIs? The API mod_apns uses is seem to be pretty old and you're using a different one. Unfortunately, I can't really understand why this happens with your configuration. I've had several complaints just like yours, but all of them got resolved with configuration change. For example, you might try using non-sandbox version of the APNS gateway. I also have a customer who complained about APNS with correct configuration, I configured it myself. But their priority not the APNS, so they don't really care and I don't change anything. I'm afraid I'll have to check out if the module works for me. |
Thank you for the follow up. The issue was due to the message size I was sending. Once I started sending smaller payloads, I was able to get the notifications. Also, the gateway push seems to be a legacy thing now: |
Well, it seems I need to update the module to support modern APIs. |
Hi,
Thank you for writing this module. I've been trying to use it in my app and have been getting this failure in ssl:send - wondering if you could give some suggestions on how to debug this? Appreciate your respone.
The text was updated successfully, but these errors were encountered: