Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 tokenId 列表在多个设备上发送推送通知。
我能够获取安装应用程序的设备的令牌 ID。但问题是如何将此令牌 ID 发送到服务器端。
您必须创建一个接受来自设备的令牌 ID 的服务器端 API 调用(Web 服务方法或类似方法)。然后服务器与 APN 服务器连接以进行身份验证并将通知作为 JSON 有效负载发送。