GCM的Andr​​oid,iOS的,使用相同的发件人ID和服务器密钥/授权密钥 [英] GCM, Android, iOS, using the same Sender id and Server key/authorization key

查看:260
本文介绍了GCM的Andr​​oid,iOS的,使用相同的发件人ID和服务器密钥/授权密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能分享Android应用和iOS应用程式之间的同一个服务器密钥和发件人ID?否则,我要这是一个很大的混乱在服务器上打开两个XMPP连接。

Is it possible to share the same Server key and Sender id between your Android app and your iOS app? Otherwise I have to open two XMPP connections on the server which is a big mess.

我如何配置谷歌开发者明白,我想使用相同的密钥?

How can I configure Google Developers to understand that I want to use the same keys?

推荐答案

您可以而且应该使用因为它们是相同的应用程序为Android和iOS一样SENDER_ID和服务器密钥。客户端可以接收/自/至多个服务器(Developer控制台项目)发送邮件,但这是没有必要的。

You can and should use the same sender_id and server key for Android and iOS given that they are the same application. Clients can receive/send messages from/to multiple servers (Developer console projects) but this is not necessary.

您的服务器,使与GCM一个XMPP连接,并通过GCM发送和接收消息。一个单一的XMPP服务器可以发送到Android和iOS的客户端。

Your server makes an XMPP connection with GCM and send and receive messages via GCM. A single XMPP server can send to both Android and iOS clients.

这篇关于GCM的Andr​​oid,iOS的,使用相同的发件人ID和服务器密钥/授权密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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