How to communicate with native in background.js of @capacitor/background-runner
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
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ionic-team/capacitor-background-runner
-
[Bug]: android notification channel id not used in CapacitorNotifications.schedulePossibly taken @coffeemakr claimed this 24 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
ionic-team/capacitor-background-runner#158 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
ionic-team/capacitor-background-runner#155 · 1 reaction ·
-
Capacitor keeps running old background runnersMay be free again @theproducer claimed this 268 days ago, and no pull request is open. Openbug
ionic-team/capacitor-background-runner#152 · 1 comment · 2 reactions · 1 assignee ·
All issues in ionic-team/capacitor-background-runner
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 1/5 Under an hour Newbie friendliness 93/100
webarkit/WebARKitLib#107 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
polhenarejos/pico-fido#302 ·
-
[BUG] Out-of-range negative slice end returns the whole stringPossibly taken @Don-Yin claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
fastfetch-cli/fastfetch#2668 ·
Maintainers usually reply within 1 day