forked from DavidBriglio/cordova-plugin-foreground-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
33 lines (32 loc) · 1.62 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
<?xml version="1.0" encoding="UTF-8" ?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-foreground-service" version="1.1.3">
<name>Cordova Foreground Service</name>
<description>Foreground service with ongoing notification.</description>
<license>MIT</license>
<author>David Briglio</author>
<repo>https://github.com/DavidBriglio/cordova-plugin-foreground-service</repo>
<keywords>cordova,background,foreground,service</keywords>
<js-module src="www/foreground.js" name="ForegroundService">
<clobbers target="cordova.plugins.foregroundService" />
</js-module>
<platform name="android">
<source-file src="src/ForegroundPlugin.java" target-dir="src/com/davidbriglio/foreground" />
<source-file src="src/ForegroundService.java" target-dir="src/com/davidbriglio/foreground" />
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service android:name="com.davidbriglio.foreground.ForegroundService" android:stopWithTask="true" />
</config-file>
<config-file target="config.xml" parent="/*">
<feature name="ForegroundPlugin">
<param name="android-package" value="com.davidbriglio.foreground.ForegroundPlugin" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
</config-file>
</platform>
<!-- Only android 26+ is accepted -->
<engines>
<engine name="cordova-android" version=">=7.0.0" />
<engine name="android-sdk" version=">=26" />
</engines>
</plugin>