为什么 GCM 需要登录 google 帐户才能在 4.0.4 操作系统以下的设备上工作? [英] Why google Account login is required for GCM to work for devices below 4.0.4 OS?
问题描述
Android 开发者文档说:
Android developer documentation says :
它使用 Google 服务的现有连接.对于 3.0 之前的设备,这要求用户在其移动设备上设置其 Google 帐户.运行 Android 4.0.4 或更高版本的设备不需要 Google 帐户.
It uses an existing connection for Google services. For pre-3.0 devices, this requires users to set up their Google account on their mobile devices. A Google account is not a requirement on devices running Android 4.0.4 or higher.
为什么需要该帐户登录.谷歌如何消除设备 > 4.0.4 的必要性?
Why that account login is required . How google has removed that necessity for devices > 4.0.4 ?
推荐答案
GCM 不再需要登录 Google 帐户.过去需要注册 GCM,但最近的 Play 服务更新停止使用 Google 帐户,即使在 Froyo 和 Gingerbread 上也是如此.
Google account login is no longer needed for GCM to work. It used to be required for registration to GCM, but a recent Play Services update stopped using the Google account even on Froyo and Gingerbread.
如果您使用 Play 服务注册到 GCM(即使用 GoogleCloudMessaging.register
),您不再需要在任何 Android 版本上配置 google 帐户.如果您使用的是已弃用的库 (GCMRegistrar.register
),您仍然需要一个 4.0.4 之前版本的 Google 帐户.
更多详情请访问 https://groups.google.com/forum/#!topic/android-gcm/ecG-RfH-Aso 和 使用 GCM 时的 GET_ACCOUNTS 权限 - 为什么需要此权限?
More details at https://groups.google.com/forum/#!topic/android-gcm/ecG-RfH-Aso and GET_ACCOUNTS permission while using GCM - Why is this needed?
这篇关于为什么 GCM 需要登录 google 帐户才能在 4.0.4 操作系统以下的设备上工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!