【问题标题】:How GCM detects various devices with same appGCM 如何检测具有相同应用的各种设备
【发布时间】:2014-08-07 12:43:06
【问题描述】:

我正在开发一个 android 应用程序并想使用 GCM。我从各种博客中阅读了有关 GCM 的信息,但我不知道 GCM 如何检测不同的设备。我知道有registration id returned by the GCM server but we are sending project number as sender's id , then how GCM detects various android devices with that app。发件人的 id 是否有任何 MAC 或 IMEI 号码?

任何建议都会有所帮助......

【问题讨论】:

    标签: android google-cloud-messaging


    【解决方案1】:

    据我所知,这可能取决于 Secure.ANDROID_ID 、您的 Application Packages 和您的 GCM 项目编号,

    因为我对在相同设备上运行的 2 个应用程序使用了相同的 Project Number,但两个应用程序的 GCM TOKEN 不同,所以它也可能取决于你们中的 Package Android Application

    更多参考:请检查这些链接

    What is difference between android device id and device token?

    How can we find device token in android emulator for Google Cloud Messaging

    希望对你有帮助...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-30
      • 1970-01-01
      • 2019-05-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多