android - Multiple Notification is getting from (GCM)Google Notification Server? -
i have multiple different deviceids in database table pointing same device because google send me different device id when device reinstall/install. due devices getting multiple notifications hurting me , users much. there way tell google send 1 notification single device? or there way check id new or old before sending request? experience weird issue? btw, using pushsharp/asp.net in backend.
update: relying on native device id. so, remove/replace old registration ids database table native device id same.
i think need remove device id database once unregistered error code.
unregistered device existing registration id may cease valid in number of scenarios, including: if application manually unregisters issuing com.google.android.c2dm.intent.unregister intent. if application automatically unregistered, can happen (but not guaranteed) if user uninstalls application. if registration id expires. google might decide refresh registration ids. if application updated new version not have broadcast receiver configured receive com.google.android.c2dm.intent.receive intents. these cases, should remove registration id 3rd-party server , stop using send messages. happens when error code notregistered.
i recommend handle error codes when send message device.
http://developer.android.com/google/gcm/gcm.html
please read role of 3rd party server. more details.
Comments
Post a Comment