I have configured apns_certificate.pem and apns_privatekey.pem for server. I am using node.js server for sending push notification. I have successfully posted notification to apns server but device has not received any push notification.
I have also gone through Troubleshooting Push Notifications . I have checked all pem files by following command on server side as it is described in the troubleshooting document.
$ openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert YourSSLCertAndPrivateKey.pem -debug -showcerts -CAfile server-ca-cert.pem
It was successful.
I checked that my server was able to connect to apns server by following commands.
$ telnet 1-courier.push.apple.com 5223
$ telnet gateway.sandbox.push.apple.com 2195
$ telnet gateway.push.apple.com 2195
I configured it properly on iOS project and I am getting device token also.
But still I was not getting push notification on my device.