简体   繁体   English

如何从服务器推送到Google TV?

[英]How to push from server to Google TV?

I have an app that will always be running on the Google TV. 我的应用程序将始终在Google TV上运行。 I would like for my server to be able to notify the Google TV when it has a new message. 我希望我的服务器能够在收到新消息时通知Google TV。 I could do this by having the Google TV poll the server but I was looking for a better solution. 我可以通过Google TV对服务器进行轮询来实现这一目标,但我一直在寻找更好的解决方案。

Android Cloud to Device Messaging (C2DM) is the preferred way. Android Cloud to Device Messaging(C2DM)是首选方式。 http://code.google.com/android/c2dm/ http://code.google.com/android/c2dm/

如果您的服务器逻辑在Google App Engine上运行,可能您可以使用http://code.google.com/appengine/docs/java/channel/overview.html频道(是的,我知道,这是一个很长的镜头黑暗)。

I would have used server side events, or web sockets, but then noticed on caniuse.com that it's not supported on the Android browser, just on chrome. 我会使用服务器端事件或Web套接字,但随后在caniuse.com上注意到它在Android浏览器上不受支持,只是在chrome上。 Which brings up an interesting point. 这带来了一个有趣的观点。 When trying to determine what is supported by the Google-TV browser, on 3.1 or 3.2 for instance, do we just use the Android browser support as reference or is there a source that provides us specific information concerning HTML5 and other support? 在尝试确定Google-TV浏览器支持的内容时,例如在3.1或3.2上,我们是仅使用Android浏览器支持作为参考,还是有来源为我们提供有关HTML5和其他支持的具体信息?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM