GCM, Android, iOS using the same sender ID and server key / key key

Can I use the same server key and sender ID between your Android app and your iOS app? Otherwise, I need to open two XMPP servers on the server, which is a big mess.

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

+4
source share
1 answer

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 several servers (projects of the developer console), but this is not necessary.

The server makes an XMPP connection with GCM and sends and receives messages through GCM. One XMPP server can send to both Android and iOS clients.

+2
source

Source: https://habr.com/ru/post/1610319/


All Articles