Canonical registration ID Testing

756 views
Skip to first unread message

JL

unread,
Jul 20, 2012, 5:49:17 AM7/20/12
to andro...@googlegroups.com
Hello,

I would like to test the correct behavior of my application server when the message returns a result with a canonical registration ID.

What is the procedure to follow in order to obtain a canonical registration ID? Under which conditions we receive a canonical registration ID?

Thank you

Johan

Pablo Dal Lago

unread,
Jul 25, 2012, 8:24:35 PM7/25/12
to andro...@googlegroups.com
You have to register again with a device and then send a message with the old registration ID. Follow these steps:

1) Get a registration from device A. Let's call this reg1.
2) Send reg1 to your server or retrieve it somehow from the device.
3) Unregister from device A (otherwise, you might get the same registration ID).
4) Register again from device A. You should get a new registration reg2. If you get the same registration as before, do steps 3 and 4 again.
5) Try sending a message using registration reg1. You should get a response with reg2 as the canonical registration ID.


--
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-gcm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/android-gcm/-/ynuzz4r4ilkJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

JL

unread,
Jul 31, 2012, 5:10:09 AM7/31/12
to andro...@googlegroups.com
Thank you!

I will try this way!

Johan


On Thursday, July 26, 2012 2:24:35 AM UTC+2, Pablo wrote:
You have to register again with a device and then send a message with the old registration ID. Follow these steps:

1) Get a registration from device A. Let's call this reg1.
2) Send reg1 to your server or retrieve it somehow from the device.
3) Unregister from device A (otherwise, you might get the same registration ID).
4) Register again from device A. You should get a new registration reg2. If you get the same registration as before, do steps 3 and 4 again.
5) Try sending a message using registration reg1. You should get a response with reg2 as the canonical registration ID.

On Fri, Jul 20, 2012 at 2:49 AM, JL <jle....@gmail.com> wrote:
Hello,

I would like to test the correct behavior of my application server when the message returns a result with a canonical registration ID.

What is the procedure to follow in order to obtain a canonical registration ID? Under which conditions we receive a canonical registration ID?

Thank you

Johan

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