【发布时间】:2014-10-19 06:16:28
【问题描述】:
为了不需要 Google 帐户,我应该为 GCM 应用程序设定什么 API 级别?即使我正在使用 GCM 的 Play Services 实现,在低 API 级别的设备上是否需要 Google 帐户?
【问题讨论】:
标签: android push-notification google-play-services google-cloud-messaging
为了不需要 Google 帐户,我应该为 GCM 应用程序设定什么 API 级别?即使我正在使用 GCM 的 Play Services 实现,在低 API 级别的设备上是否需要 Google 帐户?
【问题讨论】:
标签: android push-notification google-play-services google-cloud-messaging
一方面,official docs 说:
它使用现有的 Google 服务连接。对于 3.0 之前的设备,这要求用户在其移动设备上设置其 Google 帐户。运行 Android 4.0.4 或更高版本的设备不需要 Google 帐户。
另一方面,this post from the android-gcm group(由 Costin Manolache 制作)暗示新的 Google Play 服务库使旧版本也不需要 Google 帐户:
一些背景: Froyo 和 Gingerbread 注册在 GoogleServicesFramework 中实现,使用 Google 帐户进行注册。这导致帐户状态不佳的人出现很多身份验证错误。
从 ICS 开始,GCM 不依赖或使用 Google 帐户 - 您可以在添加帐户之前使用它,也可以不使用任何帐户。
“播放服务”更新正在所有设备上实施新方案 - 但似乎有少数设备存在问题,我们正在调查 - 但数量远低于那些使用旧方案的人。
【讨论】: