PHONE_REGISTRATION_ERROR

2,350 views
Skip to first unread message

Masdar App

unread,
Jan 4, 2016, 5:28:07 AM1/4/16
to android-gcm
Hello,
I am getting PHONE_REGISTRATION_ERROR, thanks in advance......

Diego Giorgini

unread,
Jan 27, 2016, 9:27:33 AM1/27/16
to android-gcm
Hi Masdar,

we need more information to be able to help you.
Please specify which API you are referring, and the software configuration of the device.
(Version of Android, Google Play services, whether the device was connected, whether the error is consistent or sporadic).

You can report those informations using the support form:
https://support.google.com/code/contact/gcm_dev_support

Thanks
- Diego

On Mon, Jan 4, 2016 at 10:28 AM Masdar App <masda...@gmail.com> wrote:
Hello,
I am getting PHONE_REGISTRATION_ERROR, thanks in advance......

--
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-gcm...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/ab217d9a-397f-4782-a933-f759152ccfa0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nathan Barraille

unread,
Feb 1, 2016, 2:00:03 PM2/1/16
to android-gcm
We have been seeing this happening for a decent chunk of our users forever as well...

When we try to get an InstanceID token for GCM, around 0.2% of our user base is getting this error. This happens to people with a variety of devices and Android versions, and not only to people with rooted devices.

Here is the code that triggers it:

InstanceID iid = InstanceID.getInstance(getContext());
final String token = iid.getToken(AppConfig.GCM_SENDER_ID, GoogleCloudMessaging.INSTANCE_ID_SCOPE, null);

And here is the exception:

java.io.IOException: PHONE_REGISTRATION_ERROR
       at com.google.android.gms.iid.zzc.zzb(Unknown Source)
       at com.google.android.gms.iid.zzc.zza(Unknown Source)
       at com.google.android.gms.iid.InstanceID.zzc(Unknown Source)
       at com.google.android.gms.iid.InstanceID.getToken(Unknown Source)
       at my.package.GcmUtils.registerWithGcm(GcmUtils.java:35)


Here is some kind of distribution of people it's happening to in Crashlytics:













I wish I could provide more information but this is all I have...
Hope that helps and there is a way around it, we are running a messaging app and we can't afford that many people from not getting notifications, otherwise we will have to implement our own infrastructure for push messages...

Thanks!
Nathan

Diego Giorgini

unread,
Feb 8, 2016, 3:32:38 PM2/8/16
to android-gcm
Hi Nathan,

thanks for your report.
We recently identified and fixed a bug that could lead to the reported behavior.
I have reasons to believe that the frequency of this error has been visibly reduced.

Please contact us again if you are still experiencing this error with significant frequency.

Thanks,
- Diego

--
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-gcm...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages