push notification - Gcm device registration issue in android -
currently working push notification in android.its working fine.but issues getting multiple notification instead of single notification.then check device registration table , find strange fact ,after each 30 minutes device id changing,so multiple device resisted same user_id , getting number of notification .i don't know why happen.i using samsung galaxy s2 testing. please me .
i'm not sure why registration id changes every 30 minutes. perhaps if post registration code i'll able tell. regardless issue, server should able handle multiple registrations same device. when send registration id server, send unique id created app or server, , allow identify when new registration id existing device, in case you'll replace old registration id new one.
another thing should @ server handle case gcm server returns canonical registration id, in case should replace id used sending message canonical one.
Comments
Post a Comment