pjamm-plugin-background

Background Service Plugin

Usage no npm install needed!

<script type="module">
  import pjammPluginBackground from 'https://cdn.skypack.dev/pjamm-plugin-background';
</script>

README

pjamm-plugin-background

Background Service Plugin

Install

npm install pjamm-plugin-background
npx cap sync

API

taskBeforeExit()

taskBeforeExit() => any

Returns: any


taskFinish(...)

taskFinish(options: FinishOptions) => void
Param Type
options FinishOptions

enableBackgroundFetch()

enableBackgroundFetch() => void

enableBackgroundFetch()

enableBackgroundFetch() => void

disableBackgroundFetch()

disableBackgroundFetch() => void

sendBackgroundExitData()

sendBackgroundExitData() => any

Returns: any


sendBatteryData()

sendBatteryData() => any

Returns: any


Interfaces

FinishOptions

Prop Type
taskId string