duplicate c2dm to the same device and App

52 views
Skip to first unread message

iavian

unread,
Dec 13, 2010, 8:54:50 PM12/13/10
to androi...@googlegroups.com
1) User installs the app and subscribe for c2dm(registration key)
2) User uninstalls the app.
3) User reinstalls the app and subscribes for c2dm (new registration key)

Now I send c2dm for registration keys for the device+app, resulting in duplicate alters.


How to address this problem? Thanks for your help.

xinwei yi

unread,
Dec 13, 2010, 9:45:19 PM12/13/10
to androi...@googlegroups.com
make a unregister first ?
--
Best regards,

--Xinwei

iavian

unread,
Dec 13, 2010, 9:53:19 PM12/13/10
to android-c2dm
I allow user to register only when
C2DMessaging.getRegistrationId(this) returns null. Would unregister
help ?

xinwei yi

unread,
Dec 13, 2010, 9:55:54 PM12/13/10
to androi...@googlegroups.com
i guess it may be.
if you unregistered, the device will be clear in c2dm server.so next time you register with the same device and the same app, c2dm server may send you another device id.
--
Best regards,

--Xinwei
Reply all
Reply to author
Forward
0 new messages