简体   繁体   中英

How to push from server to Google TV?

I have an app that will always be running on the Google TV. I would like for my server to be able to notify the Google TV when it has a new message. I could do this by having the Google TV poll the server but I was looking for a better solution.

Android Cloud to Device Messaging (C2DM) is the preferred way. 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. 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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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