We use PushSharp library to send push notification's to android and iOS devices.
Sometime back push notification where working on our production server but stopped working for some reason and when we test it from localhost then we are able to send push notifications to iOS devices but not from the server itself.
It is hard to troubleshoot this issue as we have checked following
Ports 59112, 2195 and 2196 are open and confirmed by the server admin and when we try from the server it self telnet connectivity seems to for testing example
When i try cmd from telnet gateway.sandbox.push.apple.com 2195
it shows a blank screen i am not sure if it means it is working but i don't get any errors such as connection refused.
So far we have following check on server
- Ports open
- Certificate configured as it working properly
I am not sure what could be the other reason for push notification not working on server & working from local-host.
Logically it should fail from local-host as no certificates are configured on local machine.
Not sure what could be the issue.
we even tried online port tester they always show above ports closed so really confused with whole scenario