android - 谷歌云消息传递必须使用 gmail 帐户吗

标签 android push-notification gmail google-cloud-messaging

我们将在我们的一个企业移动应用程序中使用 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/

相关文章:

node.js - 使用 Mandrill 发送时是否可以指定我自己的 Message-Id 电子邮件 header ?

javascript - 条件异步函数

google-apps-script - GMailApp Gmail 搜索

android - 如何在android中的交换机上显示进程状态?

javascript - 如何自定义浏览器网络推送通知正文和图标?

android - 在android中点击通知检测应用程序是否正在运行

objective-c - iOS8 和 iOS7 推送通知负载

android - Android 4 上的 Material 设计 ListView

android点击屏幕的波纹效果

java - 如何避免 Admob 阻塞 UI 线程