mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
docs(gitbook): try out generated docs
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<a style="float:right;font-size:12px;" href="http://github.com/danielsogl/awesome-cordova-plugins/edit/master/src/@awesome-cordova-plugins/plugins/foreground-service/index.ts#L1">
|
||||
Improve this doc
|
||||
</a>
|
||||
|
||||
# Foreground Service
|
||||
|
||||
```
|
||||
$ ionic cordova plugin add cordova-plugin-foreground-service
|
||||
$ npm install @ionic-native/plugins/foreground-service
|
||||
```
|
||||
|
||||
## [Usage Documentation](https://ionicframework.com/docs/native/foreground-service/)
|
||||
|
||||
Plugin Repo: [https://github.com/DavidBriglio/cordova-plugin-foreground-service](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
|
||||
Reference in New Issue
Block a user