-
Notifications
You must be signed in to change notification settings - Fork 11
/
plugin.xml
57 lines (42 loc) · 2.18 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?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="com.red_folder.phonegap.plugin.backgroundservice"
version="3.3">
<name>Background Services</name>
<description>
A plugin (and framework code) that allows the development and operation of an Android Background Service.
</description>
<license>MIT</license>
<engines>
<engine name="cordova" version=">=3.0.0"/>
</engines>
<!-- android -->
<platform name="android">
<js-module src="www/backgroundservice.js" name="BackgroundService">
<clobbers target="window.plugins.BackgroundServices" />
</js-module>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="BackgroundServicePlugin">
<param name="android-package" value="com.red_folder.phonegap.plugin.backgroundservice.BackgroundServicePlugin"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service android:name="com.red_folder.phonegap.plugin.backgroundservice.MyService">
<intent-filter>
<action android:name="com.red_folder.phonegap.plugin.backgroundservice.MyService"/>
</intent-filter>
</service>
<receiver android:name="com.red_folder.phonegap.plugin.backgroundservice.BootReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"></action>
</intent-filter>
</receiver>
</config-file>
<source-file src="src/android/MyService.java" target-dir="src/com/red_folder/phonegap/plugin/backgroundservice" />
<source-file src="src/android/backgroundserviceplugin-3.1.0.jar" target-dir="libs"/>
</platform>
</plugin>