As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center 指导。




8年前关闭。




我正在使用 GCM,我对我的应用程序 ID 在 GCM 设置中的位置感到困惑 - 是项目 ID 吗?另外我在哪里指定它?

最佳答案

发件人 ID - 发件人 ID 是您登录 Google API 控制台页面以创建项目时来自浏览器 URL 的 ID。您从 API 控制台获取的项目 ID,如入门中所述。发件人 ID 在注册过程中用于标识允许向设备发送消息的 Android 应用程序。

应用程序 ID - 正在注册以接收消息的 Android 应用程序。 Android 应用程序由 list 中的包名称标识。这可确保消息针对正确的 Android 应用程序。

查看此链接了解更多 -

http://developer.android.com/guide/google/gcm/gcm.html

希望能帮助到你。

关于android - gcm android中的应用程序ID,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/12236078/

10-11 22:38
查看更多