Background Service Plugin
npm install pjamm-plugin-background
npx cap sync
taskBeforeExit()
taskFinish(...)
enableBackgroundFetch()
enableBackgroundFetch()
disableBackgroundFetch()
sendBackgroundExitData()
sendBatteryData()
- Interfaces
taskBeforeExit() => Promise<any>
Returns: Promise<any>
taskFinish(options: FinishOptions) => void
Param | Type |
---|---|
options |
FinishOptions |
enableBackgroundFetch() => void
enableBackgroundFetch() => void
disableBackgroundFetch() => void
sendBackgroundExitData() => Promise<any>
Returns: Promise<any>
sendBatteryData() => Promise<any>
Returns: Promise<any>
Prop | Type |
---|---|
taskId |
string |