I think that is better to use the push framework than running the app in the background. If you can't use the push framework think about a daemon that pulls the messages from Whatsapp in a interval of time. What about integrating in telepathy? Regards.