nextcloud / nextcloud/android

Download notification hangs

Open
#12,258 4 comments 3 reactions 0 assignees View on GitHub
bug hotspot: uploads tab and transfer notifications stable-3.26
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

Unfortunately I can not provide exact steps to reproduce the problem, only rough ones:

1.) Install app and access a file (I doubt that it needs to be a .xlsx as in my case).
2.) After this, the app caches a local copy of this file somewhere and tries to keep it synchronized. It does not make a difference whether I access the file again or not.
3.) Time passes (maybe even weeks), and at some time I pick up the phone from the table and take a look at the notifications. There I find the notification state as shown in the screenshot.

I tried for an hour now to trigger the issue by hand but unfortunately couldn't. No matter wheter I switched networks, disconnected my WiFi or entered flight mode. The download always aborted into an error notification. So I suspect some relation to the display going black and the device kicking some part of the app from execution.

### Expected behaviour

Downloading should finish or at least end in an error.

### Actual behaviour

The downloading notification hangs in this state forever. I can not swipe it away. It also does not go away if i click on it. In this case the app just opens the directory which contains the file in the app. The notification still stays as screenshotted.

The attached adb log was recorded while I clicked on the notification with the app opening.

### Android version

13

### Device brand and model

Samsung Galaxy S20FE 5G (also already seen on a S21FE 5G)

### Stock or custom OS?

Stock

### Nextcloud android app version

3.26.0

### Nextcloud server version

27.1.4

### Using a reverse proxy?

No

### Android logs

[tapOnHangingNotification.txt](https://github.com/nextcloud/android/files/13614938/tapOnHangingNotification.txt)

### Server error logs

```bash
The server log did not show any entry this month. I guess I would have needed to change verbostiy somewhere earlier?
```

### Additional information

![HangingNotification](https://github.com/nextcloud/android/assets/9483742/674cc2d4-2ad4-4b9a-95a8-86eaafb3f294)

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.