在Amazon EC2上苹果推送通知服务器连接,但不会收到通知通知、苹果、服务器、Amazon

2023-09-11 09:02:28 作者:↖(錯過)↗

我试过苹果推送通知API,并使其在我的本地MAC(环境)工作。我在本地的Tomcat测试它,一切工作正常和iOS设备接收通知的除外。

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.

但是,当我部署我战成tomcat的远程服务器(亚马逊EC2实例),指出,我用的是同一个.p12文件进行验证。该应用程序返回成功信息,但iOS设备无法收到任何消息。

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.

我想知道如果我错过了建立这一Amazon EC2上的任何其它系统。同样的code适用于在Tomcat的Windows计算机也是如此。

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.

谢谢!

推荐答案

我已经验证过的APN发送从EC2一个推送通知的伟大工程。我遇到了麻烦,但它竟然是用证书进行了错误的应用程序,它静静地失败。如果您无法连接,然后检查防火墙。如果它是说,它成功地发送,但没有递送然后消除在证书变量

I have verified that sending a push notification from ec2 through Apns works great. I was having trouble, but it turned out to be using a cert for the wrong app and it failed silently. If you have trouble connecting then check firewall. If it is saying that it sends successfully but there is no delivery then eliminate variables in your certs.