I tried the push 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 excluded.
But when I deploy my war to tomcat on a remote server (Amazon EC2 instance), I noticed that I am using the same .p12 file for verification. The application returns a successful message, but iOS devices cannot receive messages.
I checked the connection to the Apple push server, everything seems fine.
I am wondering if I missed any other system created for this Amazon EC2. The same code works with tomcat on a Windows machine.
Thank!
source
share