UNPKG

cordova-plugin-foreground-service

Version:
33 lines (32 loc) 1.69 kB
<?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>