quickstart-android icon indicating copy to clipboard operation
quickstart-android copied to clipboard

D/FirebaseInstanceId: background sync failed: AUTHENTICATION_FAILED

Open tisalph opened this issue 10 years ago • 2 comments

Hi,

I am trying Firebase Cloud messaging. I cloned this project and created google.service.json as per instruction (https://firebase.google.com/docs/android/setup#prerequisites) and put that file under quickstart-android\messaging\app folder. But I keep getting

D/FirebaseInstanceId: background sync failed: AUTHENTICATION_FAILED

Also, when i click on Log Token button in the emulator, i getnull token.

Can someone please help me?

tisalph avatar May 26 '16 16:05 tisalph

@tisalph what kind of device are you using, and what version of Google Play Services does it have?

samtstern avatar Jun 06 '16 22:06 samtstern

The issue is resolved. I was trying this example from our company netowrk and because of firewall, emulator could not connect to FCM server. When I tried from home, it worked fine. Thanks for taking a look at it.

tisalph avatar Jun 07 '16 21:06 tisalph