Since the iphone is not advanced enough to support background processes, the only way it would be possible would be through a server side process. Interesting idea, and definitely worth a try I guess.
> Since the iphone is not advanced enough to support background processes
To be pedantic, the OS fully supports this. Apple simply doesn't allow third-party processes to do so (yet). Might be doable using push notifications, though.