How to check the token of an Android device

I am new to push notification services. I want to remove an invalid Android device token from the server database. Anyone knows how to verify a token using the gcm service. Thank you in advance.

+4
source share
1 answer

The only way to send a GCM message to the GCM connection server that you are using (either HTTP or CCS) containing the registration token (this is what they call now, not the device token) that you want to check. If it is invalid, you will receive an error message that tells you about it.

+3
source

Source: https://habr.com/ru/post/1611244/


All Articles