Files
awesome-cordova-plugins/docs/plugins/foreground-service/README.md
T
Daniel Sogl 76b4e03d04 feat!: replace dgeni/gulp with TypeDoc for README generation
Replace the legacy dgeni/gulp documentation pipeline with TypeDoc
and typedoc-plugin-markdown. Generates plugin README files with
extracted @Plugin() decorator metadata. Register custom JSDoc tags
used by plugin source files.
2026-03-21 15:16:18 -07:00

1003 B

Foreground Service

$ ionic cordova plugin add cordova-plugin-foreground-service
$ npm install @awesome-cordova-plugins/foreground-service

Usage Documentation

Plugin Repo: https://github.com/DavidBriglio/cordova-plugin-foreground-service

This plugin allows for android devices to continue running services in the background, using a foreground ongoing notification. This is targeted towards use with plugins such as 'cordova-geolocation' that will not run while the app is in the background on android API 26+.

For android API 28+, the following xml snippet should be inserted into config.xml:

...
<platform name="android">
  <config-file parent="/*" target="AndroidManifest.xml">
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
  </config-file>
  ...

Supported platforms

  • Android