实现 iOS 推送通知(服务器端)
我们希望能够向所有 iPhone 用户推送简单的短信。为此,我们显然需要创建一个服务器端代码来存储设备令牌并在必要时推送消息。有这样做的好例子吗? (谈论服务器代码)
谢谢
We want to be able to push simple text messages to ALL our iphone users. For that we obviously need to create a server side code that stores the device tokens and pushes the messages whenever necessary. Is there any good example on doing this? (Talking about the server code)
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您想自己托管,请查看 easyAPNS,或者访问 Urban Airship 如果您同意托管服务(他们有大量文档)
另一个不错的信息网站是 Ray Wenderlich 的网站,该网站托管了一个由两部分组成的教程:
Have a look at easyAPNS if you want to host it yourself, or visit Urban Airship if you are ok with a hosting service (they have an extensive set of documentation)
Another good site for info is Ray Wenderlich's site which hosts a 2 part tutorial:
我还建议使用外部服务,例如 Urban Airship 或 PushApps。
我更熟悉最后一个,我可以告诉你,除了“常规”推送通知消息之外,你还可以通过分段、位置甚至调度通知来获取消息。起初,这对您来说可能不是一个关键功能,但随着您的用户群的增长,您会发现这些功能有多么重要。
I also recommend using an external service for that such as Urban Airship or PushApps.
I more familiar with the last, and I can tell you that besides of "regular" push notifications messages, you also get messaging by segmentation, location or even scheduling notification. It may not seem like a critical features for you at first, but as your user base grow, you'll see how important those features are.