ionic-team / ionic-team/capacitor-background-runner
How to communicate with native in background.js of @capacitor/background-runner
Open
- 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
Assessment
This issue has not been assessed yet.