我喜欢在android中编写一个程序,它发送来自web到android应用程序的通知。我听说有两种类型的通信是可能的在Web到Android。一种是使用GCM和(Google Cloud Messaging),另一种则使用Web服务通信。所以我想知道,GCM(Google Cloud Messaging)在android编程中与web服务通信相比有什么优势。有没有GCM(Google Cloud Messaging)在android编程中比web服务通信有什么优势
1
A
回答
2
如果要发送或接收大量数据以进行通信,Web服务通信很有用。
和GCM通知帮助启动Web服务。因此,如果在android中接收通知,则启动Web服务以从Web获取数据。
0
在Android 6(或更高版本)中,有一个使用GCM的大专家。高优先级的GCM消息是唤醒手机打瞌睡模式的唯一方式。如果您需要发送小文本(最多4KB),我真的建议您使用GCM。
相关问题
- 1. Google Cloud Messaging(GCM)
- 2. Web服务比动态HTML有什么优势?
- 3. 设备和GCM服务器之间的Google Cloud Messaging通道有多安全?
- 4. GCM问题(Google Cloud Messaging)
- 5. 在ASP.NET中使用web API比web方法有什么优势
- 6. Google Cloud Messaging - 服务器端
- 7. Google Cloud Messaging服务器端
- 8. 将Google Cloud Messaging集成到Android应用程序中 - GCM连接服务器
- 9. 有没有办法将推送通知从Web门户发送到Google Cloud Messaging?
- 10. RESTful WCF服务与普通WCF服务相比有什么优势
- 11. AIDL在android中有什么优势?
- 12. SVN和Apache - 有没有什么优势?
- 13. GCM(Google Cloud Messaging)无法覆盖所有注册用户?
- 14. Android Google - Cloud Messaging Report
- 15. 服务器如何找到GCM(Google Cloud Messaging)注册ID
- 16. 带有Node.js的Google Cloud Messaging XMPP服务器
- 17. Digest :: SHA比Digest :: SHA1有什么优势?
- 18. git比git-svn有什么优势?
- 19. ServletRequestWrapper比过滤器有什么优势?
- 20. 使用HttpApplication比HttpApplication有什么优势?
- 21. LePUS3相比UML有什么优势?
- 22. 使用Redux比React有什么优势?
- 23. 使用SVN比CVS有什么优势?
- 24. DB2比VSAM有什么优势?
- 25. 使用javacv比opencv有什么优势?
- 26. django-treebeard比django-mptt有什么优势?
- 27. 使用BaseAdapter比ArrayAdapter有什么优势?
- 28. 使用chiliproject比redmine有什么优势?
- 29. DIVS比表格有什么优势?
- 30. 使用POCO比DataTables有什么优势?
你可以参考[这个问题](http://stackoverflow.com/questions/16463465/android-client-server-architecture-gcm-versus-webservice) –