We've been working on a GCM implementation and have noticed that a device address assigned to a an app installation, can live on even if the app is uninstalled.
So we install an app, get token A, device subscribes to a particular alert type 1, message token A with great success. Then we uninstall the app.
No we reinstall, receive token B, and the device subscribes to a particular alert type 2, we message token B with great success.
Now since we didn't send a message to token A between the time the app was uninstalled and reinstalled, we can still message both tokens, and the app receives them both.
Had we tried to message token A while the app was uninstalled, we could have cleaned that up from Google's response.
Is there any way to know that token A is technically no longer valid?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…