简体   繁体   English

Android:Android推送通知应该使用什么? Google Cloud Messaging或Parse.com

[英]Android: what should I use for android push notification? Google Cloud Messaging or Parse.com

I am working on an android project. 我正在做一个android项目。 Can anyone give me an idea what should I use for notification ? 谁能给我一个提示,我应该使用什么来通知? Using GCM it seems to be hard to implement where as using parse.com its seems easier. 使用GCM似乎很难实现,因为使用parse.com似乎更容易。 But is it recommended to use parse.com for notification? 但是建议使用parse.com进行通知吗?

Thanks in advance... 提前致谢...

Nil, you have not mentioned two things. 零,您还没有提到两件事。 Is your app communicates with cloud/Server? 您的应用程序是否与云/服务器通信? And what is the backend your using, parse.com or something else(PHP,Java,.Net)? 您使用的后端是parse.com还是其他什么(PHP,Java,.Net)?

Well, if you're using Parse.com as your backend support, i would recommend to use Parse push notifications. 好吧,如果您使用Parse.com作为后端支持,我建议您使用Parse推送通知。 Parse uses GCM for Android push notifications. 解析将GCM用于Android推送通知。

If your backend is some other server, i will opt for GCM as you don't need to maintain data again on the parse. 如果您的后端是其他服务器,我将选择GCM,因为您无需再次在解析中维护数据。 If you have different backend and want to use parse, app should communicate with the two servers one for actual communication and other for storing your device ID into parse. 如果您有不同的后端并希望使用解析,则应用程序应与两台服务器通信,一台用于实际通信,另一台用于将您的设备ID存储到解析中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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