A
A
Alex Raven2016-04-29 03:22:14
Android
Alex Raven, 2016-04-29 03:22:14

Google Cloud Messaging token: how permanent is this value?

Implemented push notifications for my application (they work great). The user logs in to the application, a login, password, and a token for push notifications are sent to my server. If the login/password match, then the user data and the token are written to the session table. In the future, it is used to send push notifications to the user's device.
My concern is, does the token ever change and does it need to be updated in the database, or is it a constant value that uniquely identifies a particular device? Android developers, please tell me.
528199a33f70401cb2974986035d7536.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IceJOKER, 2016-04-29
@alexraven

As far as I know, this is written in the documentation and it says that it is not necessary to update, even if the token changes, then when sending a push notification to the old token, it will refer to the new one.
https://developers.google.com/cloud-messaging/regi...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question