<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-background-service-android" version="0.1.0">
   <name>BackgroundService</name>
   <js-module name="BackgroundService" src="www/BackgroundService.js">
      <clobbers target="cordova.plugins.BackgroundService" />
   </js-module>
   <platform name="android">
      <config-file parent="/*" target="res/xml/config.xml">
         <feature name="BackgroundService">
            <param name="android-package" value="com.amankumar.cordova.BackgroundService" />
            <param name="onload" value="true" />
         </feature>

         <!-- <feature name="MyService">
            <param name="android-package" value="cordova-plugin-background-service-android.MyService" />
            <param name="onload" value="true" />
         </feature> -->

      </config-file>
      <config-file parent="/*" target="AndroidManifest.xml" />

      <config-file target="AndroidManifest.xml" parent="/*">
        <service android:name="com.amankumar.cordova.MyService" android:stopWithTask="false" />
      </config-file>

      <source-file src="src/android/BackgroundService.java" target-dir="src/com/amankumar/cordova/BackgroundService" />
      <source-file src="src/android/MyService.java" target-dir="src/com/amankumar/cordova/MyService" />
   </platform>
</plugin>