Android:如何在没有Android请求的情况下将数据从服务器发送到Android?

发布于 2024-09-28 17:09:37 字数 43 浏览 9 评论 0 原文

如何在设备不轮询数据的情况下将数据从服务器发送到 Android 设备?

How can I send data from a server to an Android device without the device polling for data?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

棒棒糖 2024-10-05 17:09:37

这称为服务器端“推送”,通常称为“推送”。这是 iPhone 的一项众所周知的功能,但目前 Android 上并不存在。 Android Cloud 2 设备消息传递尚未发布给一般开发社区。您可能想查看诸如 MQTT执事

This is called a server side 'push' and is commonly referred to as 'pushing'. This is a well known feature of the iPhone, however, it does not currently exist on the Android. Android Cloud 2 Device messaging has not yet been released to the general development community. you may want to check out projects such as MQTT and Deacon.

梦晓ヶ微光ヅ倾城 2024-10-05 17:09:37

您可以考虑使用 Google 的云到设备消息传递作为解决方案。
您必须注册一个帐户,并且只能使用 AppEngine目前的服务器。

您的应用程序必须使用 API 级别 8 (2.2) 才能接收云的推送。

You might consider using Googles cloud to device messaging for a solution.
You'll have to sign up for an account and are only able to use AppEngine servers at the moment.

Your application has to use API level 8 (2.2) in order to be able to receive the cloud's pushes.

不如归去 2024-10-05 17:09:37

GCM(Google Cloud Messaging)是最简单的方法,虽然 GCM 提供发送消息的基本服务,但也有一些公司可以帮助您启动和运行。

您可以看看 Urban Airship、xtify 和 mBlox (developer.mblox.com) 等公司来开始使用,并且有一些额外的工具可以帮助您以更结构化的方式构建推送通知。

祝您发展顺利!

GCM (Google Cloud Messaging) is the easiest way, and while GCM provides the basic service of sending messages, there are companies out there that do help you get up and running.

You could take a look at companies like urban airship, xtify and mBlox (developer.mblox.com) to get started with this and have a few additional tools that help you structure the push notifications in a more structured way.

Good Luck with your development!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文