An example of phonegap background service based on Red-Folder plugin