从推Django应用数据Android应用 [英] Pushing data from Django app to Android app

查看:189
本文介绍了从推Django应用数据Android应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Django的web应用程序是收集各种信息。一旦它得到的东西,我希望它能够将它推到Android设备。对于这个用例中,Android设备将始终具有应用程序的运行。我可以通过让Android的民意调查Django的应用程序做到这一点。我在想,但如果有一种方法为Django应用程序推到Android?

解决方案
  

重要提示:C2DM已经pcated正式去$ P $为6月26日,2012年。这意味着C2DM已停止接受新用户和配额的要求。没有新的功能将被添加到C2DM。然而,应用程式使用C2DM将继续工作。现有的C2DM鼓励开发者迁移到C2DM的新版本,被称为谷歌云消息传递为Android(GCM)。见C2DM到GCM迁移文件以获取更多信息。开发人员必须使用GCM新的发展。

使用谷歌云消息传递为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?

解决方案

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.

这篇关于从推Django应用数据Android应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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