jllugo90/Phonar — Issue #6: Silently ping user to see if Phonar is still installed
Author: clemdwright
Created: 2011-11-14 03:18:03+00:00
State: open

It's useful to have a way to determine whether a user still has Phonar installed, for a number of reasons:

1) We can make it clear to their friends that they are Phonar users.
2) We can delete their server-side data when they stop using Phonar.

It's not possible to get a message from the client when the user uninstalls Phonar. Therefore, the server will need to ping the client intermittently to see whether the app is still installed. For the alpha launch, we'll use C2DM to do this, however for a broader launch we made need an alternate service, as C2DM should be used infrequently.

So:

Treat any normal use of Phonar as a ping that the app is still installed.
--If there is no use of Phonar in 7 days, send a silent C2DM ping.
----If we get a 200 NotRegistered error from C2DM, it means the user has uninstalled Phonar, and we can delete the account.
----If we get no response to the ping do not delete the account.
--If there is no response after sending silent pings every 7 days for one year, delete the account.