nextcloud / nextcloud/android

Add support for offline mode for Document Provider

Open
#12,523 1 comment 0 reactions 0 assignees View on GitHub
0. Needs triage connectivity enhancement feature: document provider stable-3.27
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. Go Offline
2. Take any app that can export files
3. In the "Save As" Dialog, select a Nextcloud Folder
4. "Document could not be saved"

### Expected behaviour

1. Go Offline
2. Take any app that can export files
3. In the "Save As" Dialog, select a Nextcloud Folder
4. File is saved localy
5. As soon as you go online, the file will be uploaded

### Actual behaviour

I want to use this feature, for an app that creates an backup every day, scheduled.
It would be super handy if one could just use this procedure.

If you are online it works fine
But if you are offline, the export fails and even creates an error within that app. In a backup scenario, this is a serious error

Also, the file picker offers those Folders. So Nextcloud should not cause errors to other apps, when you chose Nextcloud Folders.

![photo_2024-02-08_11-25-52](https://github.com/nextcloud/android/assets/66730800/9ecc9540-4c70-46cc-ae32-6bcd3cc9ccb4)
![photo_2024-02-08_11-25-45](https://github.com/nextcloud/android/assets/66730800/3bf5d35d-9558-4428-ad19-86a75529a3f5)

### Android version

LinageOS 20

### Device brand and model

Google Pixel...

### Stock or custom OS?

Custom (explain in "additional information")

### Nextcloud android app version

3.27.0

### Nextcloud server version

27.1.5

### Using a reverse proxy?

No

### Android logs

_No response_

### Server error logs

_No response_

### Additional information

_No response_

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.