Closed molecular closed 8 years ago
We return exactly what GCM returns. The relevant documentation can be found here.
The relevant section is:
registration_id
: Optional string specifying the canonical registration token for the client app that the message was processed and sent to. Sender should use this value as the registration token for future requests. Otherwise, the messages might be rejected.
@molecular Just to clarify, it means that the registration token for that specific device has changed, and that the new one is contained within the registration_id
property in the GCM response. You should overwrite the registration ID stored in your server for that device with the one in the response.
I see.
thanks guys, sent a small donation to the address in readme.md
@molecular Thank you!
Hi, I'm using the send() function to send a batch of notifications to a bunch of devices. In the callback response there is a results array.
The objects in those array sometimes contain a "message_id" and sometimes a "registration_id" in addition. Example:
(registration ID shortened) The documentation is a bit thin on this. What is the meaning of the fact that an object is containing a registration_id vs. just a message_id?