That clears up a lot, thank you for taking the time to help me out!
Maybe I should put what I am doing in a better context:
My app communicates with several servers. It may log in to server A on
monday, then use server B on tuesday. It does not have a sense of what
server it is connected to, so when it first connects (and on
subsequent requests to that server) I send the registration id to the
server.
Currently it could happen that server A sends a c2dm to the client,
while it is logged in to server B. In this case it looks to the user
like a false message, as it doesn't know the push came from another
server, it assumes the currenty connexted server sent it. This is OK
for now and could be solved by adding server info to the push message.
The only foggy point for me is - am I guaranteed that once my app
registers once, even if I uninstall and reinstall my app I don't have
to re-register? Or what if I update my app via market place.
Since I am commuunicating with multiple servers I need to store the
registration I'd on the client - how do I know that this is has not
become invalid? I do update this whenever I receive a registration
intent, but I'm worried that this I'd will become invalid without me
knowing.
Thanks again, maybe i am missing something fundamental about
this... :)
On Oct 15, 2:10 pm, Costin Manolache <
cos...@gmail.com> wrote: