Accessing CapacitorKV from App
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- mobile-dev
Research direction
Start by reviewing the appStateChange entry point and the CapacitorKV access path, then compare them with the App API work referenced in #99. Done means determining whether CapacitorKV can be accessed during appStateChange and documenting the supported approach or limitation.
Written by the indexing model from the issue text.
Description
Hey,
I'm working on implementing a background task and need it to stop running when the app is in the foreground.
Using an event dispatch when the app goes into the background doesn't work because there's no active runner when the appStateChange event triggers.
It seems to me that the simplest solution would be to use CapacitorKV to set the state during the appStateChange event to handle this. Is this possible? I couldn't find any information on this in the documentation.
I've seen that #99 would allow to access the App-API, but it would be great to have a solution until it gets merged.
- Dominant language
- C
- Stars
- 57
- Forks
- 37
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 3
Getting set up
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 244 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 68/100
trezor/trezor-firmware#7997 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
area/ysql kind/bug priority/medium status/awaiting-triage
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
yugabyte/yugabyte-db#34415 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
KhronosGroup/OpenCL-Headers#318 ·
-
0.kind: build failure
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Maintainers usually reply within 1 day