# katzer/cordova-plugin-background-mode

Keep app running in background

Repository: https://github.com/katzer/cordova-plugin-background-mode
Canonical: https://ross.abutalabs.com/products/cordova-plugin-background-mode
Language: Java
License: Apache-2.0
License Family: permissive
Topics: cordova, appplant, background, infinite, android, ios, windows-uwp
Last push: 2024-09-22T08:54:55+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4712, "days_push": 710, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1388, forks 1018 (observed 2026-08-28T04:04:35.219596+00:00)

## What it is
A Cordova plugin that enables infinite background execution for hybrid mobile apps on Android, iOS, Windows, and the browser platform. It keeps the app running and network connections alive when moved to the background, exposing a simple JavaScript API to enable/disable the mode and listen for status events.

## Use cases
- keep my cordova app running when it goes to the background
- prevent android from pausing my phonegap app in background
- run background tasks in an ionic app
- keep network connections alive while app is backgrounded
- detect when my mobile app enters or leaves the background
- play audio or track location while app is in background

## When to choose
- you have a Cordova/Ionic/PhoneGap hybrid app that must keep executing when backgrounded
- you need a simple JS API to toggle background mode and observe lifecycle events
- you target Android, iOS, or Windows from a single codebase

## When to avoid
- you need App Store/Play Store guaranteed compliance, since infinite background execution may violate store policies
- you build native apps without Cordova
- you need modern OS background APIs like work managers or background fetch instead of infinite execution

## Facets
- artifact type: plugin
- maturity: maintenance
- function: mobile-framework, concurrency, developer-tools
- domain: mobile-development, cross-platform, developer-tools
- platform: windows, cross-platform
- tags: cordova, cordova-plugin, background-execution, background-mode, phonegap, hybrid-apps, android, ios, mobile

## Member repositories
- katzer/cordova-plugin-background-mode (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:35.219596+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:39:46.909015+00:00, confidence not recorded.
  - readme: https://github.com/katzer/cordova-plugin-background-mode (fetched 2026-08-28T04:04:35.219596+00:00, sha 9277cca702cd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
