推送通知(重复?)

发布于 2024-08-23 12:07:39 字数 184 浏览 6 评论 0原文

我在这里看到了有关 PNS 的其他问题,就代码而言,但是这个概念是如何工作的?我需要告诉我的客户他们需要服务器吗?服务器中的配置/cron 或其他内容是什么?

请解释一下过程。非常感谢。

编辑:

请解释一下:我是否需要购买 SSL 证书,或者 Apple 是否为我颁发“客户端”或“应用程序”SSL 证书?

I've seen other questions here about PNS, in terms of code, but how does the concept work?do I need to tell my client that they need a server? What goes in the server in terms of configuration/cron or whatever?

Please explain the process. Thanks a ton.

EDIT:

Please explain: Do I need to purchase an SSL certificate, or does Apple issue a "client" or " app" SSL certificate for me?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

全部不再 2024-08-30 12:07:39

是的,他们基本上需要一台服务器。步骤如下:

  • 用户安装应用程序
  • 应用程序请求通知
  • 手机与 APNS 通信,注册该应用程序的通知并获取令牌 返回
  • 应用程序与您的服务器通信以告知其令牌
  • 手机与 APNS 保持开放连接以侦听通知
  • 您的服务器定期轮询 APNS 以获得反馈,例如设备已被禁用或应用程序已注销
  • 当您收到通知时,您的服务器会告诉 APNS,APNS 会通知手机,手机会显示该通知

注意:您可以从以下位置下载 SSL 证书Apple 配置门户。

Yes, they basically will need a server. The steps go something like:

  • User installs application
  • Application asks for notification
  • Phone talks to APNS, registers for notification for that app and gets a token back
  • Application talks to your server to tell it the token
  • The phone keeps a connection open to APNS to listen for notifications
  • Periodically your server polls APNS for feedback, e.g. that the device has been disabled or the application has deregistered
  • When you have a notification, your server tells APNS, and APNS tells the phone, which displays the notification

Note: you download the SSL certificate from Apple provisioning portal.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文