我需要编写一个简单的应用程序来获取推送通知。
我使用 GCM,它使用 Google Play 服务来获取信息。
我的问题是 - 要访问 GCM,是否需要 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.
如果您的应用支持 3.0 之前的设备,那么是,则需要 Google 帐户并且您需要将此权限添加到您的 list
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
关于android - GCM(谷歌云消息)需要谷歌账户吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22605907/