Android的GCM:同一发件人ID为更多的应用发件人、更多、Android、GCM

2023-09-12 22:45:00 作者:只言片语

是否可以使用同一个发件人ID为更多的应用程序?现在,我有18个应用程序(不同的语言和一些功能),它使用相同的后端。现在我实现推送通知与GCM。但是,后端团队preffer只生一个谷歌项目 - 适用于所有应用发件人ID。 没有人尝试呢?是这种情况可能吗?什么缺点?

Is it possible to use same sender id for more applications? Now I have 18 application (different language and some functionality) which use same backend. Now I am implementing push notifications with GCM. But backend team preffer to have only one google project - SENDER ID for all applications. Did anyone try it? Is this scenario possible? What are the drawbacks?

感谢

推荐答案

开发是很欢迎(鼓励)使用相同的发件人ID / API密钥为所有的应用程序。

Developers are perfectly welcome (and encouraged) to use the same sender ID / API key for all of their apps.

当您发送邮件时,您可以指定一个注册ID,这是隐式链接到应用程序+设备它生成的包名。只有那些要求注册ID的应用程序将收到你的信息。

When you send a message, you specify a registration ID, which is implicitly linked to the package name of the app + device where it was generated. Only the app which requested the registration ID will receive your message.

来源:我的Andr​​oid团队在谷歌中的一员的