需要推送通知的实时上网吗? [英] Is a live internet connection required for push notification?

查看:151
本文介绍了需要推送通知的实时上网吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是愚蠢的问题,但我需要确认我有没有其他人问。

This maybe a silly question, but I need confirmation and I have no one else to ask.

我想了解我实现自己的推送通知为Android移动设备的影响。这需要连续的TCP连接到服务器,虽然大部分时间将是空闲的。

I am trying to understand the implications of implementing my own push notification for android mobile devices. This requires a continuous TCP connection to a server, though most of the time it will be idle.

我的假设是,即使处于空闲状态,服务器能够通过TCP连接将数据推到客户端,建立互联网连接将永远是必需的,如果连接中断(即用户切换连接关闭)这推将不再可能。

My assumption is that, even when idle, for the server to be able to push data to the client through the TCP connection, an active internet connection will always be required, and if the connection is disrupted (i.e. the user switches the connection off) this push will no longer be possible.

这是假设是正确的?

推荐答案

我会说是的,这的确是正确的。你会如何​​没有一个实时的互联网连接沟通?

I'd say yes, it's correct indeed. How would you communicate without a live internet connection?

据我所知,Android的C2DM通过排队的推送请求处理此当用户没有实时的网络连接和发送下来到用户在连接回来了。你可以实现你的解决方案的服务器端类似的行为。

Afaik, Android C2DM handles this by queueing up the push requests when the user does not have a live net connection and sending them down to the user when the connection gets back up. You could implement a similar behavior in your solution's server side.

这篇关于需要推送通知的实时上网吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆