Background runner plugin: backgroundrunner.dispatchEvent error
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript, typescript
- Domain
- mobile
Research direction
Start by checking the runner.js location and the BackgroundRunner settings in capacitor.config.ts, then reproduce the backgroundrunner.dispatchEvent error on Android and iOS. Compare the configured src path with the project layout and inspect the linked screenshot for the exact failure. Done means the plugin starts and runs the configured checkIn event correctly.
Written by the indexing model from the issue text.
Description
Bug Report
Plugin(s)
"@capacitor/background-runner": "^1.0.5",
Capacitor Version
@capacitor/cli: 5.0.5
@capacitor/core: 5.0.5
@capacitor/android: 5.0.5
@capacitor/ios: 5.0.5
Platform(s)
Android, ios
Current Behavior
I'm using capacitor in a ionic+ stencil application
I'm not able to start correctly BackgroundRunner plugin
This is my runner.js location
this is my capacitor.config.ts
{
"appId": "com.myapp.app",
"appName": "MyApp",
"webDir": "www",
"server": {
"androidScheme": "https"
},
"ios": {
"handleApplicationNotifications": false
},
"plugins":{
"BackgroundRunner": {
"label": "com.myapp.app.check",
"src": "runner.js",
"event": "checkIn",
"repeat": true,
"interval": 2,
"autoStart": false
}
}
}
And I have this error
Is a problem cause by a wrong path for the runner.js file or something else?
I'm not able to make it work!
Expected Behavior
Plugin runs correctly
- Dominant language
- C
- Stars
- 57
- Forks
- 37
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 3
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
-
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 245 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 86/100
DaveGamble/cJSON#1094 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Status: Opened
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Issue-Bug Needs-Triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day