FCM背景同步失败:AUTHENTICATION_FAILED [英] FCM background sync failed: AUTHENTICATION_FAILED

查看:455
本文介绍了FCM背景同步失败:AUTHENTICATION_FAILED的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用FCM在Android上获取实时通知.当我尝试使用模拟器运行应用程序时,通知消息会正确显示.但是当我在真实设备(小米红米手机注3)上尝试时,没有出现通知.令牌始终返回null,并且出现此错误:

I tried to get real time notification on Android using FCM. When I try running my app using emulator, notification message appear correctly. but when I try it on real device (xiaomi redmi note 3), the notification doesn't appear. The token always return null, and I get this error:

FCM background sync failed: AUTHENTICATION_FAILED

我曾经尝试阅读所有相同的问题,但是出现此问题的原因有两个:

I've been to try read all same problem, there are 2 reasons why the problem appears:

  1. 设备没有Google Play服务
  2. 没有互联网连接

但是我确定我的设备具有Google Play服务并已连接到互联网,但是问题仍然存在.

but I'm sure that my device have Google Play Services and is connected to internet, but the problem still exists.

我该如何解决这个问题?任何建议将不胜感激.

How can I solve this problem? Any suggestion would be appreciated.

推荐答案

我已经解决了这个问题.出现此问题是因为我的设备错误与google acoount同步.所以我尝试重新登录我的Google帐户,并确保同步google isnt错误,然后问题已解决:D

i've been solved this problem btw. the problem appear because my device error sync with google acoount. so i try to re-login my google account and make sure that sync google isnt error then the problem was fix :D

这篇关于FCM背景同步失败:AUTHENTICATION_FAILED的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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