Skip to content Skip to sidebar Skip to footer

Gcm Device Registration Issue In Android

Currently i am working with push notification in android.its working fine.but my issues is am getting multiple notification instead of a single notification.then i check my device

Solution 1:

I'm not sure why your registration id changes every 30 minutes. Perhaps if you post your registration code I'll be able to tell. Regardless to that issue, your server should be able to handle multiple registrations for the same device. When you send the registration id to your server, send with it another unique id created by your app or by your server, and that would allow you to identify when you get a new registration id for an existing device, in which case you'll replace the old registration id with the new one.

Another thing you should do at the server is handle the case where gcm server returns a canonical registration id, in which case you should replace the id you used for sending the message with the canonical one.

Post a Comment for "Gcm Device Registration Issue In Android"