How to unregister when app is closed in gcm?
<p>I want to unregister device from server when app is closed, So that when user again open my app, he register again and will get new message. I use that demo code, but it not unregister from server, only from gcm and when user again open my app he receives all older messages. I have tried in other way, but device couldn't unregister and receives multiple messages. How can i unregister it from gcm server and my server?</p>
