When the android gcm token expires

I am curious about the Android Android developer strategy. When I want a device registered to the Gcm service to be able to receive Gcm push messages, I will register it using the API.

Then I will get the Gcm "A" token. If I never update my application version code in the play store. And will Google update it with β€œB” and β€œA” will automatically expire?

If so, when will he do it. I looked through some articles that said that after "A" was updated with "B", then when the server tries to send the message "A", the server will receive a new registration identifier "B". Now I’m wondering how can the client side find out that the gcm token β€œA” has expired and replaced with β€œB”

Can someone answer my question?

thank

+4
source share
2 answers

Yes, add onTokenRefresh () with the document

, , . getToken() . , . , .

+2

, , , Google. , , .

Android Implementation Guide on Instance ID

(, 6 ), , . , :

  • ; , SSL .
  • ; , .
  • .

, ( ) . : GCM ?

0

All Articles