I'm developing an Android app, and I'm using GCM to send push notifications. When the user gets a new message, I send a push notification to his phone.
The problem is that when the user reads the message from the webpage, then a useless notification remain on his phone until he cleans it. Is there some sort of method, maybe another push notification, that I can use to remove this useless notification?
I experience something similar in my Gmail app. I receive a notification, and when I read the new mail from my computer the notification just disappears.
How does the Gmail app do this?