android – GCM(Google云消息传递)是否需要Google帐户?

前端之家收集整理的这篇文章主要介绍了android – GCM(Google云消息传递)是否需要Google帐户?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我需要编写一个简单的应用程序来获取PUSH通知.
我使用了使用Google Play服务获取信息的GCM.

我的问题是 – 要访问GCM,是否需要Google帐户?
我可以使用其他电子邮件帐户来识别设备吗?
有没有其他方法可以获得其他电子邮件帐户或设备的推送通知

解决方法

引自 GCM Characteristics

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.

如果您的应用支持3.0之前的设备,那么是,Google帐户是必需的,您需要将此权限添加到您的清单中

<uses-permission android:name="android.permission.GET_ACCOUNTS" />
原文链接:https://www.f2er.com/android/310215.html

猜你在找的Android相关文章