Notes close when switching between apps
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 2.5k
- Forks
- 1k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 13
Description
Steps to reproduce
- Open latest Nextcloud app on iOS
- Open .md file in the text editor
- Switch away to another app
- Switch back to Nextcloud app
Expected behaviour
Note stays open.
Actual behaviour
Note closes and the file browser shows.
Screenshots
Logs
I think these logs from the iOS app show the problem:
2022-12-13 19:02:15 Network response request: https://cloud.raylyon.us/remote.php/dav/files/raylyon/Recipes/BBQ, result: success(1667 bytes)
2022-12-13 19:02:19 Network request started: GET https://cloud.raylyon.us/remote.php/dav/files/raylyon/Recipes/BBQ/Corn%20Pasta%20Salad.md
2022-12-13 19:02:19 Network request started: POST https://cloud.raylyon.us/ocs/v2.php/apps/files/api/v1/directEditing/open?path=/Recipes/BBQ/Corn%20Pasta%20Salad.md&editorId=text
2022-12-13 19:02:19 Network response request: https://cloud.raylyon.us/ocs/v2.php/apps/files/api/v1/directEditing/open?path=/Recipes/BBQ/Corn%20Pasta%20Salad.md&editorId=text, result: success(202 bytes)
2022-12-13 19:02:22 [INFO] Application will resign active
2022-12-13 19:02:25 [INFO] Application did enter in background
2022-12-13 19:02:25 [SUCCESS] Refresh task success submit request 60 seconds <BGAppRefreshTaskRequest: com.nextcloud.refreshTask, earliestBeginDate: 2022-12-14 00:03:25 +0000>
2022-12-13 19:02:25 [SUCCESS] Background Processing task success submit request 5 minutes <BGProcessingTaskRequest: com.nextcloud.processingTask, earliestBeginDate: 2022-12-14 00:07:25 +0000, requiresExternalPower=0, requiresNetworkConnectivity=0>
2022-12-13 19:02:26 [INFO] Application will enter in foreground
2022-12-13 19:02:26 Network request started: GET https://cloud.raylyon.us/status.php (200)
2022-12-13 19:02:26 Network request started: GET https://cloud.raylyon.us/ocs/v2.php/cloud/user
2022-12-13 19:02:26 Network request started: PROPFIND https://cloud.raylyon.us/remote.php/dav/files/raylyon/Recipes/BBQ
2022-12-13 19:02:26 Network request started: GET https://cloud.raylyon.us/index.php/avatar/gwenb/384
2022-12-13 19:02:26 Network response request: https://cloud.raylyon.us/status.php, result: success(172 bytes)
2022-12-13 19:02:26 Network request started: PROPFIND https://cloud.raylyon.us/remote.php/dav/files/raylyon/Recipes/BBQ
2022-12-13 19:02:26 Network response request: https://cloud.raylyon.us/ocs/v2.php/cloud/user, result: success(1066 bytes)
2022-12-13 19:02:26 Network request started: REPORT https://cloud.raylyon.us/remote.php/dav/files/raylyon
2022-12-13 19:02:26 Network request started: GET https://cloud.raylyon.us/index.php/avatar/raylyon/384
2022-12-13 19:02:26 Network request started: GET https://cloud.raylyon.us/ocs/v1.php/cloud/capabilities
2022-12-13 19:02:26 Network request started: GET https://cloud.raylyon.us/ocs/v2.php/apps/dashboard/api/v1/widgets
2022-12-13 19:02:26 [INFO] Application did become active
2022-12-13 19:02:26 [INFO] Initialize Auto upload with 0 uploads
2022-12-13 19:02:27 Network response request: https://cloud.raylyon.us/remote.php/dav/files/raylyon/Recipes/BBQ, result: success(1667 bytes)
2022-12-13 19:02:27 Network response request: https://cloud.raylyon.us/remote.php/dav/files/raylyon/Recipes/BBQ, result: success(1667 bytes)
2022-12-13 19:02:27 Network response request: https://cloud.raylyon.us/remote.php/dav/files/raylyon, result: success(16225 bytes)
2022-12-13 19:02:27 Network request started: PROPFIND https://cloud.raylyon.us/remote.php/dav/files/raylyon/Recipes/BBQ
2022-12-13 19:02:27 Network response request: https://cloud.raylyon.us/ocs/v2.php/apps/dashboard/api/v1/widgets, result: failure(Alamofire.AFError.responseValidationFailed(reason: Alamofire.AFError.ResponseValidationFailureReason.unacceptableStatusCode(code: 404)))
Environment data
iOS version: 16.1.1, 16.2
Nextcloud iOS app version: 4.5.7.0
Server operating system: Ubuntu 20.04
Web server: Apache
Database: MariaDB
PHP version: 8.0.25
Nextcloud version: 23.0.11
Contributor guide
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.
Research direction
Reproduce the issue in the Nextcloud iOS app by opening a .md file, switching to another app, and returning, using the reported iOS and app versions where possible. Start with the application lifecycle events in the supplied logs; done means the note remains open instead of returning to the file browser after foregrounding.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100