将数据从 Django 应用推送到 Android 应用

发布于 2024-12-29 14:06:33 字数 166 浏览 2 评论 0原文

我有一个 Django Web 应用程序正在收集各种信息。一旦它得到一些东西,我希望它能够将其推送到 Android 设备。对于此用例,Android 设备将始终运行该应用程序。我可以通过让 Android 轮询 Django 应用程序来做到这一点。我想知道是否有办法将 Django 应用程序推送到 Android?

I have a Django webapp that is collecting all sorts of information. As soon as it gets something I want it to be able to push it to the Android device. For this use case, the Android device will ALWAYS have the app running. I could do this by having the Android poll the Django app. I was wondering though if there is a way for Django app to push to the Android?

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

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

发布评论

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

评论(2

盗琴音 2025-01-05 14:06:33

重要提示:自 2012 年 6 月 26 日起,C2DM 已被正式弃用。这意味着 C2DM 已停止接受新用户和配额请求。 C2DM 不会添加新功能。但是,使用 C2DM 的应用程序将继续运行。我们鼓励现有 C2DM 开发人员迁移到新版本的 C2DM,即 Google Cloud Messaging for Android (GCM)。有关更多信息,请参阅 C2DM 到 GCM 迁移文档。开发者必须使用GCM进行新的开发。

使用Android 版 Google 云消息

Important: C2DM has been officially deprecated as of June 26, 2012. This means that C2DM has stopped accepting new users and quota requests. No new features will be added to C2DM. However, apps using C2DM will continue to work. Existing C2DM developers are encouraged to migrate to the new version of C2DM, called Google Cloud Messaging for Android (GCM). See the C2DM-to-GCM Migration document for more information. Developers must use GCM for new development.

Use Google Cloud Messaging for Android.

掩饰不了的爱 2025-01-05 14:06:33

您可以查看 Android 云到设备消息传递框架

这是一个利用该框架的 django 原型: https://github.com/patrickbaumann/c2dmprototype

You could check out the Android Cloud to Device Messaging Framework

Here is a django prototype utilizing the framework: https://github.com/patrickbaumann/c2dmprototype

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