forked from DavidBriglio/cordova-plugin-foreground-service
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugin.xml
51 lines (51 loc) · 1.84 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
<?xml version="1.0" encoding="UTF-8" ?>
<plugin
xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="net.sgj0.cordova.plugin.foreground"
version="1.1.9"
>
<name>Cordova Foreground Service</name>
<description>Foreground service with ongoing notification.</description>
<license>MIT</license>
<repo>https://github.com/sgj0/cordova-plugin-foreground-service</repo>
<issue>https://github.com/sgj0/cordova-plugin-foreground-service/issues</issue>
<keywords>cordova,background,foreground,service</keywords>
<engines>
<engine name="cordova-android" version=">=7.0.0" />
</engines>
<platform name="android">
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service
android:name="net.sgj0.cordova.plugin.foreground.ForegroundService"
android:stopWithTask="true"
android:exported="false"
android:foregroundServiceType="mediaPlayback"
/>
</config-file>
<config-file target="config.xml" parent="/*">
<feature name="ForegroundPlugin">
<param
name="android-package"
value="net.sgj0.cordova.plugin.foreground.ForegroundPlugin"
/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
</config-file>
<js-module src="www/foreground.js" name="ForegroundService">
<clobbers target="cordova.plugins.foregroundService" />
</js-module>
<source-file
src="src/ForegroundPlugin.java"
target-dir="net/sgj0/cordova/plugin/foreground"
/>
<source-file
src="src/ForegroundService.java"
target-dir="net/sgj0/cordova/plugin/foreground"
/>
</platform>
</plugin>