GCM: InvalidRegistration vs. NotRegistered in JSON response

2,560 views
Skip to first unread message

Peter deVroede

unread,
Nov 12, 2012, 4:51:55 PM11/12/12
to androi...@googlegroups.com
I have some (hopefully) quick questions about the JSON response to a GCM request. 

What's the difference between an InvalidRegistration response and an NotRegistered response? I assume NotRegistered has the same meaning it had in C2DM (in which case I clear the saved registration_id on the server side). Should my response to InvalidRegistration be different? If so what should it be?

Thanks in advance for any advice!

Peter

cc Ma

unread,
Nov 21, 2013, 12:39:30 AM11/21/13
to androi...@googlegroups.com
as my experience, InvalidRegistration means registration_id is invalid then GCM is not able to send to the device. NotRegistered happened when app was uninstalled(maybe after install for few hours). I will clear saved registration_id on server side for both situations.


Peter deVroede於 2012年11月13日星期二UTC+8上午5時51分55秒寫道:

Guillaume Perrot

unread,
Nov 21, 2013, 10:20:44 AM11/21/13
to androi...@googlegroups.com
I also get rid of registration identifier on both InvalidRegistration or NotRegistered errors.

cc Ma

unread,
Nov 24, 2013, 10:15:15 AM11/24/13
to androi...@googlegroups.com
 but it is weird that I do not receive NotRegistered after uninstalled app for 3 days.  anyone have the same experience?


2013/11/21 Guillaume Perrot <gpe...@ubikod.com>

--
You received this message because you are subscribed to a topic in the Google Groups "android-c2dm" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-c2dm/gsCoLB0d3_E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-c2dm...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages