I need a little help in implementing push notification in iOS. I am using Swift.
I successfully created Push certificate and key (.pem). I am able to retrieve the deviceToken. And I was able to send notification to my device via APN Tester Free app. So, basically push notification is working in my local computer.
I found this tutorial and picked up the PHP file and uploaded it to the server, together with my .PEM file. But when I try to open sample.com/newspush.php, I get Service Unavailable.
I also tried other tutorial (I could not remember the link). But I am getting: Failed to connect to the APNS server. Error = Connection timed out