小编use*_*234的帖子

设备到设备使用没有第三方服务器的android gcm推送通知

我们计划在Android上使用消息传递/聊天类应用程序.我们计划使用GCM来交换消息.传统的方法是让Application Server存储用户的所有gcmid以及user1是否要向user2发送消息,

1. user1将消息发送到应用程序服务器,其中包含消息和receipent id即user2 2.应用服务器检索user2的gcmid并调用sender.send(regid2,message)3.User2接收消息.

我看到它只是对https://android.googleapis.com/gcm/send的REST API调用.

因此,如果somhow user1具有user2的gcmid,为什么我们不能直接从user1设备调用gcm API来减少服务器上的负载和服务器上的操作成本.请告诉我这个.

注意:我们不打算使用Upstreaming

android google-cloud-messaging

5
推荐指数
1
解决办法
1591
查看次数

标签 统计

android ×1

google-cloud-messaging ×1