Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

failed gcm registration in android

I'm trying to deploy an application with push notifications. The problem is that I can not get it to work from a device. While using the emulator, everything is ok but when using a cell phone I get a log saying "AUTHENTICATION_FAILED".

I have checked and the Gmail account is synchronized but is always trying to check me out this error.

Could someone give me a hand?

like image 204
phipex Avatar asked Aug 13 '12 21:08

phipex


People also ask

How do I enable GCM on Android?

Open your app's settings and select Intercom for Android. Then find the "Enable GCM" section.

What is GCM registration ID?

A Registration ID is an identifier assigned by GCM to a single instance of a single application installed on an Android device. The device is assigned this identifier when it registers to Google Cloud Messaging. The GCM documentation doesn't specify what information is encoded in this identifier.

What is GCM service on Android?

Google Cloud Messaging (GCM) is a service that allows you to send push notifications from your server to your users' Android devices, and also to receive messages from devices on the same connection.

What is APN and GCM?

Both Android and iOS requires the device to contact their respective push message provider (GCM or APNs) to receive a special string (which I will call the identifier), that uniquely identifies a specific app on a specific device. In GCM this is called the device ID, while APNs calls it a device token.


2 Answers

This is occurred due to the bad Google Account password. Check your account on the phone.

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.

Check error codes and explanations here.

like image 79
Parvin Gasimzade Avatar answered Oct 03 '22 04:10

Parvin Gasimzade


The problem was that I had multiple accounts on the phone, for those who have the same problem only has to synchronize with an initial account set up the phone.

like image 25
phipex Avatar answered Oct 03 '22 04:10

phipex