推送服务器如何知道将其通知发送到哪里

Chr*_*ris 9 mobile android push-notification ios

当我在手机上收到通知时,推送服务器如何与设备通信?

客户端和服务器之间是否有持续的连接?据我所知,像 WebSockets 这样的东西会给所有这些设备的服务器端带来巨大的负载。

它是客户端的某种轮询机制吗?似乎仍然是一个巨大的请求负载。

Does the client keep the server up to date with his IP address? How comes no firewall blocks this request (like the one of the router when using Wifi)?

Thanks!

Gab*_*iel -2

iOS 和 Android 的推送通知分别是 Apple (APN) 和 Google (Cloud Messaging) 提供的服务。例如,对于 APN,服务器将消息发送到 Apple 的 APN 服务器,其中包括标识设备的令牌。事实上,该令牌对于在设备上运行的应用程序来说是唯一的。显然,该通道是安全的,并且您的服务器需要凭据(证书)。

  • 是的,但是服务器如何与客户端通信呢? (3认同)