Reputation:
I am new in push notification services. I want to remove invalid android device token from server database. Any one know how can validate token using gcm service. In advance thanks.
Upvotes: 4
Views: 1869
Reputation: 393811
The only way is to send a GCM message to the GCM connection server you are using (either HTTP or CCS) containing the registration token (that's what they call it now, not device token) you wish to validate. If it's invalid, you'll get an error response that will let you know that.
Upvotes: 3