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

[Bug]: NetworkType.CONNECTED constraint blocks offline background execution

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

Description

### Current Behavior

Another issue from me.

There is no need to blocking background runner from starting when there is no internet connection or when the app has no internet permission. There is tons of use cases for bg runner without the internet.
If there is no internet, the task invoked by the runner should handle it, not the runner.

### Expected Behavior

Background task can be invoked without internet conneciton.

### Reproduction

https://github.com/ionic-team/capacitor-background-runner/tree/c07bf57773b6edef46b48e88e0a485a296b4899a/apps/example-app

### Screenshots / Media

_No response_

### Environment Details

```Shell
NA
```

### Versions Affected

latest

### Platforms Affected

- [ ] iOS
- [x] Android
- [ ] Web

### Notes / Comments

_No response_

Contributor guide

Open the contributing guide

Research direction

Run the Android example app from the linked reproduction at commit c07bf57773b6edef46b48e88e0a485a296b4899a and observe background execution without an internet connection or permission. Read the Android background-runner path that applies the NetworkType.CONNECTED constraint. Done means the background task can be invoked offline, leaving internet handling to the task itself.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.