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