I am building an mobile app ( RSS reader ) for Android with Sencha touch and PhoneGap. I have created some sort of background service that checks every 12 hours for new posts and update the app. When there is a new post a notification is shown up ( http://developer.android.com/guide/topics/ui/notifiers/notifications.html )
I am using window.setInterval() for this. This seems like a dirty way to do it, but it works.
Whats your opinion about this and is there a better way to get the job done?