[英]Send push notification from one Android device to other Using GCM
I am been using Parse for sending push notifications earlier and that does not seem to work well. 我一直在使用Parse来发送推送通知,这似乎不太好用。 I heard from the internet that we can send push notifications from one android device to another using
GCM
and I followed this official documentation . 我从互联网上听说我们可以使用
GCM
从一个Android设备向另一个设备发送推送通知,我按照这个官方文档 。 Before I get to implement it, I just need to know whether, we can send push notification from an Android device to another using this service. 在我实现它之前,我只需要知道是否可以使用此服务从Android设备向另一个设备发送推送通知。
I have the following doubts 我有以下疑惑
The answers to all your questions are in the documentation itself. 您所有问题的答案都在文档中。
1) Send Upstream message from Device A to the server and send Downstream message from server to Device B. 1)从设备A向服务器发送上游消息,并从服务器向设备B发送下游消息。
2) Instance ID API will provide a token which is the unique identifier. 2) 实例ID API将提供作为唯一标识符的令牌。
3) Yes you have to implement you server that will communicate with GCM connection server. 3)是的,您必须实现与GCM连接服务器通信的服务器。
All of which is explained on the overview page itself. 所有这些都在概述页面上进行了解释。
I hope this answers your question. 我希望这回答了你的问题。 There is also a sample you can refer to.
您还可以参考一个示例 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.