Apple push notification server on Amazon EC2 connected but not receiving notification

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!

+3
source share
1 answer

I have verified that sending push notifications from ec2 via Apns works fine. I had problems, but it turned out that I was using the certificate for the wrong application, and it failed. If you are having trouble connecting, check your firewall. If he says that it is sent successfully, but there is no delivery, then exclude the variables in your certificates.

0
source

All Articles