我们将在我们的一个企业移动应用程序中使用 Google Cloud Messaging 服务。目标设备可以是 BYOD/公司拥有的设备。设备是否必须注册/登录 Google 帐户(使用 G mail dot com 的 somaaddress)才能使用 GCM 推送通知服务?
最佳答案
根据官方文档,GCM 仅适用于 3.0 之前的设备需要 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.
( Source )
也就是说,来自关于 android-gcm group 的讨论,Google 的一位 GCM 开发人员暗示,如果您使用新的 Google Play 服务库注册到 GCM,即使对于 3.0 之前的设备(Froyo 和 Gingerbread),您也不需要 Google 帐户:
Froyo and Gingerbread registration is implemented in GoogleServicesFramework, using the Google account for registration. This has resulted in a lot of auth errors for people where the account was not in a good state.
Starting with ICS, GCM doesn't depend or uses the Google account - you can use it before you add an account or without any accounts.
The "Play Services" update is implementing the new scheme on all devices - but it seems a small number of devices have problems with this, we're investigating - but the numbers are far lower than those with the old scheme.
关于android - 谷歌云消息传递必须使用 gmail 帐户吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24427564/