Test Multiple service with the Cordova Plugin Background Services
Install.
-
Create a new Cordova Project for android
-
Add the Background service plugin to the project with cordova plugin add https://github.com/Red-Folder/bgs-core.git
-
Place the MyService Java Classes under the package name com.red_folder.phonegap.plugin.backgroundservice.services;
-
Activate services on AndroidManifest.xml inside the tag
-
Place the javascript logic inside the www/index.js file (This file exists for the sample HelloWorld app from Cordova)
-
Check LogCat and search for the tag MyService, you should see the logs for the MyService1 and MyService2