我在 godaddy 购买了 SSL,我托管在共享服务器上。这足以发送推送通知吗?
在下面tutorial ,它说我应该有虚拟专用服务器 (VPS)。
Push notifications are always sent by a server. For development you can use your Mac as the server (which you’ll do in this tutorial) but for production use, you need at least something like a VPS (Virtual Private Server). A cheap shared hosting account is not good enough. You need to be able to run a background process on the server, install an SSL certificate, and be able to make outgoing TLS connections on certain ports.
最佳答案
是的,这就足够了,但请确保您的共享服务器已打开端口 2195。
这是一个很棒的教程。它帮助我在共享服务器中做到这一点。
查看端口是否开放的方法:
telnet gateway.sandbox.push.apple.com 2195
关于ios - 通过共享服务器发送推送通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33242165/