ios - 通过共享服务器发送推送通知

标签 ios objective-c push-notification

我在 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/

相关文章:

objective-c - 通过iPhone麦克风插孔收听,但通过扬声器播放?

ios - 带有 UIActivityIndi​​cator 的 UIButton Action

objective-c - 如何在 Xcode 中添加 Watch 或 Inspect?

ios - 从 AFNetworking 获取非 json 内容

android - GCM 的 API key

java - 安卓 : resuming an app after an opening notification push

ios - 在操作表选项中长按

objective-c - Objective-C ARC 中的(非原子、读写、保留)和(非原子、强)

ios - 关于 iOS 应用中的唯一标识符

ios - 丢失分发的私钥,推送通知