是谷歌云消息从机器人到Android可能吗? [英] Is Google Cloud Messaging from Android to Android possible?

查看:203
本文介绍了是谷歌云消息从机器人到Android可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读到关于谷歌云消息在 http://developer.android.com/google /gcm/gcm.html

I read about Google Cloud Messaging at http://developer.android.com/google/gcm/gcm.html.

它支持第三方应用程序服务器的Andr​​oid应用程序推送通知。

It supports Third Party Application server to Android application push notification.

我想知道是否可以实现同样的事情推/从一个Android应用程序收到通知上一个移动到同一个Android应用程序上使用谷歌云消息传递的另一个移动。

I am wondering whether it is possible to implement the same thing push/receive notification from an Android app on one mobile to the same Android app on another mobile using Google Cloud Messaging.

如果没有,有没有类似谷歌云消息传递?

If not, is there any other free service available similar to Google Cloud Messaging?

推荐答案

这是Android设备可以发送GCM消息到其他Android设备。它所需要的是API密钥的其他设备的注册ID(该应用程序使用注册到GCM的谷歌API项目的ID)。使用这些参数,可以通过HTTP请求发送GCM消息给另一个设备。

An Android device can send a GCM message to another Android device. All it needs is the API Key (of the Google API Project ID that the app uses to register to GCM) an the Registration ID of the other device. Using these parameters it can send a GCM message to another device via an HTTP request.

通常应用程序使用GCM需要一个第三方服务器,以存储所有注册设备的注册的ID。如果你的应用程序有不同的方式,让设备共享他们的注册ID彼此,而不需要一台服务器,你不需要服务器。

Usually applications that use GCM require a 3rd party server in order to store the Registration IDs of all registered devices. If your app has a different way to let devices share their Registration IDs with each other without requiring a server, you don't need the server.

这篇关于是谷歌云消息从机器人到Android可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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