nextcloud / nextcloud/android

Auto upload notification is shown, even when auto upload should not run at this time

Open
#14,052 0 comments 0 reactions 0 assignees View on GitHub
0. Needs triage bug
Dominant language
Kotlin
Stars
5.6k
Forks
2k
Avg merge
2d 18h
Merged PRs (30d)
92

Description

### ⚠️ Before posting ⚠️

- [x] This is a **bug**, not a question or an enhancement.
- [x] I've [searched for similar issues](https://github.com/nextcloud/android/issues) and didn't find a duplicate.
- [x] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [x] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).

### Steps to reproduce

1. Create a auto upload tasks, that's only supposed to upload when charging
2. Use phone normally without it charging

### Expected behaviour

Auto-upload notification should only be shown and the background task run, if the conditions for the auto-upload are met.

### Actual behaviour

Auto-upload notification shows even if the phone is not charging. Fairly often it is shown, when the phone has just gotten unlocked or woken up.
The actual upload does not seem to be happening, when the notification is shown. So this part works.

### Android version

11

### Device brand and model

OnePlus 6T

### Stock or custom OS?

Stock

### Nextcloud android app version

3.29.2

### Nextcloud server version

30.0.0

### Using a reverse proxy?

Yes

### Android logs

_No response_

### Server error logs

```bash

```

### Additional information

Possibly related to #13945

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.