GCM(Google云消息传递)需要Google帐户吗? [英] Is Google Account required for GCM (Google Cloud Messaging)?

查看:96
本文介绍了GCM(Google云消息传递)需要Google帐户吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要编写一个简单的应用程序才能获取PUSH通知。

我使用的是使用Google Play服务获取信息的GCM。

I need to write a simple app to get PUSH Notifications.
I used GCM which uses Google Play Services to get information.

我的问题是 - 要访问GCM,是否需要Google帐户?

是否可以使用另一个电子邮件帐户来识别设备?

是否有任何其他方式可以获得另一封电子邮件的推送通知帐户或设备?

My questions is - to access GCM, is Google Account required or not?
Can i use another email account to identify device?
Is there any other way to get push notification for another email account or device?

推荐答案

GCM特性


它为Google服务使用现有连接。对于3.0美元以前的b $ b设备,这需要用户在其
移动设备上设置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.

如果您的应用支持pre -3.0设备,所以,Google帐户是必需的,您需要将此权限添加到您的清单中

If your app is supporting pre-3.0 devices, so yes, Google Account is required and you need to add this permission to your manifest

<uses-permission android:name="android.permission.GET_ACCOUNTS" />

这篇关于GCM(Google云消息传递)需要Google帐户吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆