I have implemented GCM 3.0
with Instance ID API
for sending push notification to application using Application
and GCM
server.
Here is Instance ID API for GCM documentation which i am referring.
When User direcltly uninstall application without logout then GCM
gives "Not Registered"
error for devices with the app uninstalled.
What i have to do is to remove useless Device id tokens
from Application server
for that i have tried with Uninstall of application then Instance ID
is changed but when application data is cleared by User then new Instance ID
will same as previous Instance ID
.
while Android GCM
documentation says:
Instance ID is stable but may become invalid, if:
- App deletes Instance ID
- Device is factory reset
- User uninstalls the app
- User clears app data
is there any particular reason for this?
As Google says, "Instance ID MAY become invalid if ...".
Here is my findings while using GCM,