Skip to content Skip to sidebar Skip to footer

Gcm Phone_registration_error

I'm trying to set up an application to work with gcm but every time I get the phone_registration_error error according to the Gcm documentation this error means: Incorrect phone r

Solution 1:

GCM only works on devices that run android 2.2 or newer. Also GCM only works if a google account is installed for the device. This is also the reason google recommend using <uses-permission android:name="android.permission.GET_ACCOUNTS" /> in the manifest so you are sure the device has a google account.

Solution 2:

I had the same issue and after seraching on the internet for many days I noticed this in the google groups (https://groups.google.com/forum/#!topic/cerberus-support-forum/eJxOsYqkTxo) and tried it and it worked flawlessly for me.

There is something wrong with your Google account. Please try this:

  • Go to Settings -> Applications -> Manage applications -> All

or

Go to Settings -> Apps-> All (on newer versions)

  • Select "Clear data" for "Google Play services" and "Google services framework"
  • Reboot the phone

Then check for the GCM id from your app.

If it still doesn't work then remove all your google accounts from the phone and reboot the phone and add the account again.

It worked for me (after implementing many solutions that I got from searching the internet.)

Hope it helps!!

Solution 3:

i looked in your manifest and you forgot to pass GooglePlay Services metadata.

  1. Verify if you have linked GooglePlay services library to your project

  2. Try to add this in your

<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/>

It works nicely for me.

Then recompile and retry. Hope it helps.

Post a Comment for "Gcm Phone_registration_error"