协议用于安卓发送推送通知 [英] Protocol used for sending push notification in Android

查看:212
本文介绍了协议用于安卓发送推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,哪个协议用于发送推送通知到设备和发送推送通知要求GCM。

I wants to know that which protocol is used for sending push notification to device and for sending push notification request to GCM.

无论是HTTP,HTTPS或者一些别的东西?

Whether it is HTTP, HTTPS or some thing else?

推荐答案

有两种协议HTTP和XMPP,你可以用它来发送消息给GCM服务器。

There are two protocols http and xmpp which you can use to send message to GCM server.

您想要使用什么样的现在,它取决于你。如果你想广播消息则u应该以http

Now its up to you what you want to use. If you want to broadcast message then u should go with http.

您可以播放1000的消息在一个HTTP请求。而在一个请求通过XMPP只有一个消息...

you can broadcast 1000 message in a single http request. And only one message through xmpp in a request...

的Http可以只用于流了下来(第三方应用程序服务器-gcm-MOB设备)

Http can be used only for down streaming(3rd party app server -gcm-mob device)

但GCM不会支持最多使用HTTP流。 对,你应该使用xmpp.Xmpp可同时用于了精简和流了下来。

But gcm won't support up streaming using http. for that you should use xmpp.Xmpp can be used for both up streamlining and down streaming.

的推送通知Implementaction可以很容易的,如果你要使用HTTP和更硬,如果你打算用xmpp.but谷歌已经提供了详细的教程如何实现XMPP协议。 所以,请看看在谷歌开发者网站。

Implementaction of push notification can be very easy if you are going with http and that much more hard if you are going with xmpp.but Google has provided detail tutorial how to implement xmpp. So please have a look On Google developer site.

这篇关于协议用于安卓发送推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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