I tried the apple push notification API and made it work on my local mac(environment). I tested it in my local tomcat, everything works fine and iOS devices receive notifications as excepted.
But when I deploy my war into the tomcat at remote server( Amazon EC2 instance), noted that I use the same .p12 file for verification. The application returns a successful message but the iOS devices could not receive any messages.
I checked the connection with Apple push server, everything seems fine.
I am wondering if I missed any other system set up for this Amazon EC2. The same code works on a tomcat on windows machine as well.
Thanks!