I'm sending push notifications to android device using GCM service and the token that is sent by device. Everything is working well. Now if I change the device token and add an arbitrary string to the start of the token GCM still sends the notification. But if I add something to end of the token Google responds with error! Here is a successful token:
testen0xLucMNBo:APA91bEkZjKCUVT30O7J9OMZoUWmjdRb3jIFfRBwp62hgK3JEbJ20MlPvpKWXkQj8YMKuVHOyhNfRiG5Op1lh68iT_D_-81JhKXhLVYi1KrWx1Qu7L6WSnm9-oOhFHdKsmjo-qm_9Ana
Notice the test
in the beginning of token. That's what I added.
And this is what google replies.
{"multicast_id":8394350681994886128,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1479811125743676%3595830d66d6cf16"}]}
Also I got a hint that the actual token happens after the "APA" part and now I'm wondering what the first part is?
Is it a normal behavior? Is there such a behavior specified in Google docs anywhere?
--
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/a6e5ffea-0a1a-45af-9025-d3952d5ea080%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.