nextcloud / nextcloud/ios

Photo auto upload doesn't happen on latest testflight either

Open
#2,697 46 comments 3 reactions 0 assignees View on GitHub

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
  1. configure nextcloud IoS app with auto upload photoes
  2. clear nextlcoud ios log
  3. take a picture
  4. wait for a few minutes, and no photo uploaded to server
Expected behaviour

I expect the photo shall be uploaded to server

Actual behaviour

The picture take on 14:14, but actually uploaded happened on 14:23 after opening the app. Or I haven't waited long enough?

Screenshots

If applicable, add a screenshot showing the issue.

Logs
2023-12-04 14:13:37 [INFO] Clear log with level 1 Nextcloud Liquid for iOS 4.9.3.3 © 2023 (Simulator / TestFlight)
2023-12-04 14:13:48 [INFO] Application will resign active
2023-12-04 14:13:49 [INFO] Application did enter in background
2023-12-04 14:13:49 - Auto upload: true
2023-12-04 14:13:49 - Auto upload in background: true
2023-12-04 14:13:49 - Refresh task: ok
2023-12-04 14:13:49 - Processing task: ok
2023-12-04 14:23:02 [INFO] Application will enter in foreground
2023-12-04 14:23:03 [INFO] Application did become active
2023-12-04 14:23:03 Network request started: POST https://10.0.0.2/ocs/v2.php/apps/notifications/api/v2/push
2023-12-04 14:23:03 Network request started: GET https://10.0.0.2/status.php
2023-12-04 14:23:03 [INFO] Automatic upload, new 1 assets found [Init Auto Upload]
2023-12-04 14:23:03 Network request started: MKCOL https://10.0.0.2/remote.php/dav/files/reeve/Photos
2023-12-04 14:23:04 Network response request: https://10.0.0.2/status.php, result: success(170 bytes)
2023-12-04 14:23:04 Network request started: GET https://10.0.0.2/ocs/v2.php/cloud/user
2023-12-04 14:23:04 Network request started: MKCOL https://10.0.0.2/remote.php/dav/files/reeve/Photos/2023
2023-12-04 14:23:04 Network request started: MKCOL https://10.0.0.2/remote.php/dav/files/reeve/Photos/2023/12
2023-12-04 14:23:04 Network response request: https://10.0.0.2/ocs/v2.php/cloud/user, result: success(1119 bytes)
2023-12-04 14:23:04 [INFO] start synchronize Favorite
2023-12-04 14:23:04 Network request started: REPORT https://10.0.0.2/remote.php/dav/files/reeve
2023-12-04 14:23:04 Network request started: GET https://10.0.0.2/index.php/avatar/reeve/384
2023-12-04 14:23:04 Network request started: GET https://10.0.0.2/ocs/v1.php/cloud/capabilities
2023-12-04 14:23:04 Network request started: GET https://10.0.0.2/ocs/v2.php/apps/dashboard/api/v1/widgets
2023-12-04 14:23:04 [INFO] Automatic upload added 23-12-04 14-14-18 0014.heic with Identifier 18EF02B8-C2F2-43FD-8BBA-D07F77DC97E2/L0/001
2023-12-04 14:23:04 [INFO] Start createProcessUploads
2023-12-04 14:23:04 [INFO] Initialize Auto upload with 1 uploads
2023-12-04 14:23:04 [INFO] PROCESS-UPLOAD find 1 items
2023-12-04 14:23:04 Network response request: https://10.0.0.2/ocs/v2.php/apps/notifications/api/v2/push, result: success(1038 bytes)
2023-12-04 14:23:04 Network request started: POST https://push-notifications.nextcloud.com/devices?format=json
2023-12-04 14:23:05 Network response request: https://10.0.0.2/remote.php/dav/files/reeve, result: success(156 bytes)
2023-12-04 14:23:05 [INFO] end synchronize Favorite
2023-12-04 14:23:05 [INFO] start synchronize Offline
2023-12-04 14:23:05 [INFO] end synchronize offline
2023-12-04 14:23:05 [INFO] Upload file 23-12-04 14-14-18 0014.jpg with Identifier 18EF02B8-C2F2-43FD-8BBA-D07F77DC97E2/L0/001 with size 2957068 [CHUNK 0, E2EE false]
2023-12-04 14:23:05 Network start upload file: https://10.0.0.2/remote.php/dav/files/reeve/Photos/2023/12/23-12-04 14-14-18 0014.jpg
2023-12-04 14:23:05 [INFO] Upload file 23-12-04 14-14-18 0014.jpg with task with taskIdentifier 3
2023-12-04 14:23:05 Network response request: https://10.0.0.2/ocs/v2.php/apps/dashboard/api/v1/widgets, result: success(1382 bytes)
2023-12-04 14:23:05 Network request started: GET https://10.0.0.2/apps/files/img/app.svg
2023-12-04 14:23:05 Network request started: GET https://10.0.0.2/ocs/v2.php/apps/files/api/v1/directEditing
2023-12-04 14:23:05 Network request started: GET https://10.0.0.2/ocs/v2.php/apps/user_status/api/v1/user_status
2023-12-04 14:23:05 Network request started: GET https://10.0.0.2/apps/user_status/img/app-dark.svg
2023-12-04 14:23:05 Network response request: https://10.0.0.2/ocs/v2.php/apps/files/api/v1/directEditing, result: success(753 bytes)
2023-12-04 14:23:05 Network response request: https://10.0.0.2/ocs/v2.php/apps/user_status/api/v1/user_status, result: success(223 bytes)
2023-12-04 14:23:05 Network request started: GET https://10.0.0.2/apps/activity/img/activity-dark.svg
2023-12-04 14:23:05 Network request started: GET https://10.0.0.2/extra-apps/calendar/img/calendar-dark.svg
2023-12-04 14:23:06 [SUCCESS] Upload complete https://10.0.0.2/remote.php/dav/files/reeve/Photos/2023/12/23-12-04 14-14-18 0014.jpg, result: success(2957068 bytes)
2023-12-04 14:23:06 Network completed upload file: https://10.0.0.2/remote.php/dav/files/reeve/Photos/2023/12/23-12-04 14-14-18 0014.jpg
2023-12-04 14:28:16 [INFO] Application will resign active
2023-12-04 14:28:16 [INFO] Application did enter in background
2023-12-04 14:28:16 - Auto upload: true
2023-12-04 14:28:16 - Auto upload in background: true
2023-12-04 14:28:16 - Refresh task: ok
2023-12-04 14:28:16 - Processing task: ok
Reasoning or why should it be changed/implemented?

Isn't it an important feature?

Environment data

iOS version:
iOS 17.2

Nextcloud iOS app version:
Nextcloud Liquid for iOS 4.9.3.3 (latest testflight)

Server operating system:
ubuntu 23.04

Web server:
Apache

Database:
mysql/redis

PHP version:
8.1.25

Nextcloud version: see Nextcloud admin page
27.1.3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the four listed steps on iOS 17.2 with the reported app version, then follow the background-task log entries: “Init Auto Upload,” “createProcessUploads,” and “PROCESS-UPLOAD.” Compare behavior while the app remains backgrounded with behavior after it returns to the foreground; done means a newly taken photo uploads without reopening the app.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.