ios - 苹果如何知道发送推送通知的设备的IP地址?

标签 ios apple-push-notifications

苹果如何知道发送推送通知的目标设备的IP地址...

  1. APN 服务器需要p12 证书、配置文件 token ID 来发送推送通知。任何方式如果服务器向客户端(实际上是苹果设备)发送信息或数据,它应该有客户端的IP地址。 APN 服务器如何知道这一点?

  2. 或者 apple 设备应该轮询 APN 服务器以获取通知。APN 服务背后还有其他技巧吗?

最佳答案

来自 "Apple Push Notification Service" 在《本地和推送通知编程指南》中:

Each device establishes an accredited and encrypted IP connection with the service and receives notifications over this persistent connection.

所以是 设备 发起与 APNs 的连接。因此 APNs 需要 不知道设备的 IP 地址。

关于ios - 苹果如何知道发送推送通知的设备的IP地址?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22652599/

相关文章:

ios - Realm 集合通知和 Collection View 计数之间的不同步

ios - UIActivityViewController 中 UILabel 的 UIAppearance

iphone - UrbanAirship 有什么意义?

iOS:推送通知已停止工作

ios - 如何在保留通知中心的同时清除角标(Badge)编号

iphone - 有没有办法自定义 iPhone 上现有的联系人应用程序?

UIBarButtonItem 上的 ios-fontawesome

ios - 通过 URL 方案流式传输到适用于 iOS 的 VLC

ios - didRegisterForRemoteNotificationsWithDeviceToken 不返回 deviceToken

ios - Apple 推送通知响应 IP 地址