Siamaster
Siamaster

Reputation: 977

GCM, Android, iOS, using the same Sender id and Server key/authorization key

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?

Upvotes: 4

Views: 2134

Answers (1)

Arthur Thompson
Arthur Thompson

Reputation: 9225

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.

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.

Upvotes: 2

Related Questions