android - how users opt-out of c2dm message -



android - how users opt-out of c2dm message -

we implementing c2dm force notifications users. want user able "opt-out" @ beginning. if opt-in, register device , send id our server store later delivery , track unique device id.

the problem there doesn't seem reliable way in android device id. i've read says, "just generate guid @ first startup of app". well, fine, if user starts app, opts in, uninstalls , re-installs app, opts out, have no way of removing old device (since device id of sec install new).

i've tested , old c2dm registration id works after uninstall , re-install.

any suggestions? how others allow users opt-out of notifications. how track devices?

having device id nice, don't need handle opt-outs. when send c2dm message server, include registration id. then, when device receives message, can compare delivered registration id thinks registration id is.

if matches, show notification. if doesn't match, ping server , tell opt-out registration id.

android android-c2dm

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -