I am developing application in which is based on
Finally i came up with following solution.
I have implemented
GCM 3.0 with
Instance ID API for sending push notification to application using
GCM server instead of old
So when Application server try to send push notification to device then server gets
“error”:“NotRegistered” response for old device id so based on that server will remove useless entry.
In GCM 2.0 server gets
“error”:“NotRegistered” response sometimes even if application is installed but in
GCM 3.0 it works perfectly.