简体   繁体   English

需要打开以接收来自APNS的推送通知的端口号

[英]Ports number needed to open to receive push notification from APNS

I would like to understand the cycle of APNS with my web server to receive push notification. 我想了解Web服务器接收推送通知的APNS周期。 I open the port 2195 from my webserver in the (out side), do I need another port to open it in my sever to receive the push notification??? 我从(外部)Web服务器打开了端口2195,是否需要另一个端口在服务器中打开以接收推送通知? because still not received it. 因为仍然没有收到。

please help! 请帮忙!

Yes, port 2195 open. 是的,端口2195已打开。 With APNS, you only send out things. 使用APNS,您只发送东西。 Apple doesn't send you anything back unless you're using the feedback gateway, which I guess is not your case... 除非您使用反馈网关,否则苹果不会将任何东西发回给您,我想这不是您的情况...

Your server do not receive push notifications. 您的服务器未收到推送通知。 It only sends requests to Apple, which then sends notifications to iOS devices or MacOS desktops. 它仅将请求发送到Apple,然后Apple将通知发送到iOS设备或MacOS桌面。

If your device did not receive and your server code is being able to establish a connection with apple, much probably your push cert is not uploaded to your server or it has permission problems or it was not properly generated at your iOS dev website. 如果您的设备没有收到,并且您的服务器代码能够与Apple建立连接,则很可能您的推送证书未上传到您的服务器,或者它存在权限问题,或者未在您的iOS开发网站上正确生成。

ps if you're sending OUT things, your port logically should be open from inside (outbound) in your server ps如果您要发送OUT内容,则逻辑上应该从服务器的内部(出站)打开端口

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM