android - android 中的 gcm 注册失败

标签 android push-notification google-cloud-messaging

我正在尝试部署带有推送通知的应用程序。问题是我无法通过设备让它工作。在使用模拟器时,一切正常,但在使用手机时,我收到一条日志,上面写着 "AUTHENTICATION_FAILED"

我已经检查过并且 Gmail 帐户已同步,但总是试图检查我是否出现此错误。

有人可以帮我吗?

最佳答案

这是由于错误的 Google 帐户密码造成的。在手机上查看您的帐户。

Bad Google Account password. The Android application should ask the user to enter his/her Google Account password, and let the user retry manually later. Fix on the device side.

检查错误代码和解释 here .

关于android - android 中的 gcm 注册失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11942736/

相关文章:

android - 从服务器向 Android 应用程序发送命令

android - 如何使用 ShareCompat 共享多个文件

android - 用于显示文本选择句柄的 EditText 的自定义剪切/复制操作栏

android - Firebase Cloud Functions 和 Android 推送通知

php - FCM 推送通知问题 : "error" :"NotRegistered"

android - 重新打包 list 后 GCM 注册失败

java - 实现 'com.google.android.gms:play-services-ads:18.1.0'

Android : 5. 0 : WebChromeClient. FileChooserParams 无法解析为类型

push-notification - 使用 GMail API,获取新邮件的首选方式是什么?

android - Firebase 云消息传递 API key