mrDoctorWho / ejabberd_mod_apns

An ejabberd module to send PUSH messages to iOS devices through APNS
MIT License
33 stars 19 forks source link

I don't get push Notification on my device #20

Closed BesatZardosht closed 7 years ago

BesatZardosht commented 7 years ago

I have registered my device token successfully. and this is my server log:

2017-03-14 13:02:19.389 [debug] <0.578.0>@mod_apns:message:79 Offline message
2017-03-14 13:02:19.389 [debug] <0.578.0>@mod_apns:message:89 mod_apns: Checking Type
2017-03-14 13:02:19.389 [debug] <0.578.0>@mod_apns:message:95 mod_apns: Subscription both
2017-03-14 13:02:19.389 [debug] <0.578.0>@mod_apns:message:101 mod_apns: Checking Result
2017-03-14 13:02:19.389 [debug] <0.578.0>@mod_apns:message:109 mod_apns: Checking Subscription
2017-03-14 13:02:19.389 [debug] <0.578.0>@mod_apns:message:115 mod_apns: Sending Payload
2017-03-14 13:02:19.389 [debug] <0.578.0>@mod_apns:send_payload:30 FORMAT ERROR: "mod_apns: trying to send payload with these parameters: Address: ~s Port: ~s Cert: ~s Keyfile: ~s Password ~s" ["gateway.sandbox.push.apple.com",2195,"/Applications/ejabberd-16.03/conf/APNS/TestAPNS.pem","/Applications/ejabberd-16.03/conf/APNS/TestAPNSKey.pem",undefined]
2017-03-14 13:02:19.761 [debug] <0.578.0>@mod_apns:send_payload:55 mod_apns: Successfully sent payload to the APNS server

But I don't get notifications on my device!!

BesatZardosht commented 7 years ago

It was my certificate

mrDoctorWho commented 7 years ago

Glad you resolved your problem.