For the complete documentation index, see llms.txt. This page is also available as Markdown.

Background Fetch

Background Fetch plugin for Cordova and Ionic. Cross-platform Background Fetch implementation. This plugin will execute your provided callbackFn whenever a…

Cross-platform Background Fetch implementation. This plugin will execute your provided callbackFn whenever a background-fetch event occurs.

iOS

There is no way to increase the rate which a fetch-event occurs and this plugin sets the rate to the most frequent possible value -- iOS determines the rate automatically based upon device usage and time-of-day (ie: fetch-rate is about ~15min during prime-time hours; less frequently when the user is presumed to be sleeping).

Android

Uses JobScheduler (API 21+) or AlarmManager to schedule periodic callbacks. Additional constraints (network, charging, idle) can be set via BackgroundFetchConfig.

For more detail, please see https://github.com/transistorsoft/cordova-plugin-background-fetch

Installation

ionic cordova plugin add cordova-plugin-background-fetch
npm install @awesome-cordova-plugins/background-fetch

Plugin Repo: https://github.com/transistorsoft/cordova-plugin-background-fetch

Supported Platforms

  • Android

  • iOS

Further Information

Last updated