Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

How to communicate with native in background.js of @capacitor/background-runner

Open
#133 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
mobile-dev

Research direction

Start by examining the background.js entry point and the stated @capacitor/background-runner runtime constraints. The issue names no native files or tests and provides no acceptance criterion, so clarify the supported bridge and what Bluetooth connection and data upload behavior should count as done.

Written by the indexing model from the issue text.

Description

I want to automatically connect to Bluetooth and upload data after a certain period of time after the app enters the background. I found that @capacitor/background-runner can achieve this timing requirement. However, in the background.js runtime environment, there is no window or Capacitor, and other plugins such as (@capacitor-community/bluetooth-le, @capacitor/filesystem) cannot be used. So I wanted to implement it myself, but I couldn't find a way to notify the native execution of Bluetooth connection in the background.js runtime environment.

Dominant language
C
Stars
56
Forks
36
Avg merge
5h 10m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ionic-team/capacitor-background-runner

All issues in ionic-team/capacitor-background-runner

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.