ionic-team / ionic-team/capacitor-background-runner

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

Open
#133 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
56
Forks
36
Avg merge
4d 12h
Merged PRs (30d)
7

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.