nextcloud / ios

📱 Nextcloud iOS App
https://itunes.apple.com/us/app/nextcloud/id1125420102
GNU General Public License v3.0
1.89k stars 862 forks source link

Autoupload how improvement it ? #2225

Open alfwro13 opened 1 year ago

alfwro13 commented 1 year ago

Steps to reproduce

1.Upgrade to the latest iOS version

  1. Autouploads stop working

Expected behaviour

All new photos should auto upload. Also when the app is opened newly taken photos should be listed in the Transfers section

Actual behaviour

Newly taken pictures are not being autouploaded. They are also not showing up in the Transfers (More--> Transfers) section. Manual upload works fine.

Screenshots

If applicable, add a screenshot showing the issue.

Logs

If applicable, you can post the iOS app or server logs (removing any sensitive information).

Reasoning or why should it be changed/implemented?

This was working fine on my phone prior the iOS 16 upgrade. I have removed and reinstalled the app but that has made no difference

Environment data

iOS version: iOS 16.1

Nextcloud iOS app version: see More > Settings 4.5.3.0

Server operating system: debian

Web server: nginx

Database: Ver 10.5.15-MariaDB

PHP version: 8.0

Nextcloud version: see Nextcloud admin page 24.0.6

wonx commented 1 year ago

Ok, it's on iOS Settings, Nextcloud, Location. There I have selected "While Using the App", although I don't know if "Always" would work better in this case (but I'm worried about the battery life).

kdjordjev commented 1 year ago

Unfortunately i do not have this option. I only have the "Background app refresh", and NextCloud do not use the Location settings at all. I install and reinstall but did not ask for Location permission at all. I use ver. 4.6.0.19. Perhaps you use older version?

Update: Per the thread above the GPS function seems to have been removed from the app. I would fully support to be brought back. If people are afraid of tracking they can disable it

@marinofaggiana do you expect that the auto-upload issue to be solved with 4.6.0.19 and should I reopen it ?

KillerTic commented 1 year ago

Just if someone else stumble up on this.

I also had this issue and pictures weren't uploading at all.

In the iOS settings, not the whole Gallery was given access to...

fl0eb commented 1 year ago

Since there is a lot of frustration on how Apple implemented background tasks, I will not create another issue but hope one of the developers reads this and is not getting mad at me picking up this topic again… However I think many people (or at least me) would like to see this functionality implemented. Without it, you either have to use another iOS app (PhotoSync works quite well) or integrate through a different piece of software (e.g. Immich). Both increase complexity for the users and administrators. Therefore I really hope the developers could give this topic another shot.

I would like to highlight the following post of @mplorentz https://github.com/immich-app/immich/issues/235#issuecomment-1320963891 He describes quite well on how BGAppProcessingTask (long running jobs) in combination with BGAppRefreshTask (<20s jobs) can be used to achieve automatic background synchronization.

Immich implemented the functionality already with pull request 1758 https://github.com/immich-app/immich/pull/1758

ueismann commented 1 year ago

+1 for this functionality, one of the main reasons I use NC.

Does not work on iOS 16.3.1, NC app 4.7.0.23

Ridderxxl commented 1 year ago

+1 from me as well. NC works like a charm uploading from Android but I cannot get it going reliably on my Iphone (iOS 16.3.1)

fl0eb commented 1 year ago

@marinofaggiana: Please have mercy on us and have a look on my comment https://github.com/nextcloud/ios/issues/2225#issuecomment-1477312784

As hard as it might be, many would be thankful 🥲

Ridderxxl commented 1 year ago

I was thinking, might it not be an option to sync from Icloud? Apple user have to have iCloud anyway. And for me at least it is not such a problem to use iCloud instead of the iPhone to download the photos from. Provided that photos are deleted from iCloud.

The process being:

Win win?

pokaalinkanssayohon commented 1 year ago

I was thinking, might it not be an option to sync from Icloud? Apple user have to have iCloud anyway. And for me at least it is not such a problem to use iCloud instead of the iPhone to download the photos from. Provided that photos are deleted from iCloud.

The process being:

  • Native photo upload to iCloud from apple devices.
  • new photos are uploaded from iCloud to NC
  • after confirmation of upload in NC photos are deleted from iCloud (not the device that made them)

Win win?

This would be awesome solution in my opinion. Nowadays iOS users have to keep full resolution photos on device, with iCloud to NC upload solution, you could keep optimized photos on device and full resolution photos on iCloud. I have thought about this many times, how to do this but this would solve that issue. Only this deletion photos from iCloud could be optional in this solution.

twizzayy commented 1 year ago
  • new photos are uploaded from iCloud to NC

lose lose.

I have been following this issue for many months. I agree that the current method of uploading in the background and keeping the app constantly running is not ideal, however please please please do not do this.

For many of us, the point of self-hosting Nextcloud is to keep our data out of big cloud providers' hands. Even if it is just temporarily passing through. If this were to be implemented, I would have to keep the function disabled and continue complaining about it.

Frankly, I still hope that we go back to the old way of allowing GPS location services to notify the app when a picture has been taken. I understand that this was confusing for many users and for that reason, it was discontinued. A simple UI adjustment could overcome that. Instead of removing the feature, a message could be displayed explaining that your location is not being shared with any third parties and that the app uses GPS location to determine when there are new pictures to sync.

I still hope that we will go back to this.

kdjordjev commented 1 year ago

I am in full support to bring the old GPS function back. We NEED it. Please add it back and disable it by default so it is transparent to folks who do not want to use it.

Please add it back

Get Outlook for iOShttps://aka.ms/o0ukef


From: Twizzay @.> Sent: Monday, April 17, 2023 1:39:47 PM To: nextcloud/ios @.> Cc: kdjordjev @.>; Mention @.> Subject: Re: [nextcloud/ios] Autoupload not working on iOS 16.1 or 16.0 (Issue #2225)

I have been following this issue for many months. I agree that the current method of uploading in the background and keeping the app constantly running is not ideal, however please please please do not do this.

For many of us, the point of self-hosting Nextcloud is to keep our data out of big cloud providers' hands. Even if it is just temporarily passing through. If this were to be implemented, I would have to keep the function disabled and continue complaining about it.

Frankly, I still hope that we go back to the old way of allowing GPS location services to notify the app when a picture has been taken. I understand that this was confusing for many usershttps://github.com/nextcloud/ios/issues/2026#issuecomment-1143200276 and for that reason, it was discontinued. A simple UI adjustment could overcome that. Instead of removing the feature, a message could be displayed explaining that your location is not being shared with any third parties and that the app uses GPS location to determine when there are new pictures to sync.

I still hope that we will go back to this.

— Reply to this email directly, view it on GitHubhttps://github.com/nextcloud/ios/issues/2225#issuecomment-1512056557, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGLINQFMU7B5CUVOSTRXWGLXBWTBHANCNFSM6AAAAAARRCB3WU. You are receiving this because you were mentioned.Message ID: @.***>

ueismann commented 1 year ago

I can only second that. Please bring the old functionality back. We need open cloud solutions.

ferbulous commented 1 year ago

+1 for this, i tried using photosync while it does work in the background. Some of the photos/videos original date were not retained (changed to the day it was transferred)

This does not happen with nextcloud transfer via webdav

fabefour commented 1 year ago

+1 from me. maybe as some kind of expert or developer setting disabled by default. But please bring back the GPS function

twizzayy commented 1 year ago

@marinofaggiana Do you think this issue should be reopened?

kdjordjev commented 1 year ago

Please reopen the issue

Get Outlook for iOShttps://aka.ms/o0ukef


From: Twizzay @.> Sent: Monday, May 1, 2023 8:24:34 AM To: nextcloud/ios @.> Cc: kdjordjev @.>; Mention @.> Subject: Re: [nextcloud/ios] Autoupload not working on iOS 16.1 or 16.0 (Issue #2225)

@marinofaggianahttps://github.com/marinofaggiana Do you think this issue should be reopened?

— Reply to this email directly, view it on GitHubhttps://github.com/nextcloud/ios/issues/2225#issuecomment-1529832606, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGLINQBCYZJ7WCBJNHYB4MDXD7ITFANCNFSM6AAAAAARRCB3WU. You are receiving this because you were mentioned.Message ID: @.***>

marinofaggiana commented 1 year ago

@twizzay-code no, all too much has been said about the background, until apple gives us a REAL background.

kdjordjev commented 1 year ago

It’s unfortunate… Apple will not add the Background and I feel Nextcloud is crippled without this workaround feature

Get Outlook for iOShttps://aka.ms/o0ukef


From: Marino Faggiana @.> Sent: Tuesday, May 2, 2023 3:14:36 AM To: nextcloud/ios @.> Cc: kdjordjev @.>; Mention @.> Subject: Re: [nextcloud/ios] Autoupload not working on iOS 16.1 or 16.0 (Issue #2225)

@twizzay-codehttps://github.com/twizzay-code no, all too much has been said about the background, until apple gives us a REAL background.

— Reply to this email directly, view it on GitHubhttps://github.com/nextcloud/ios/issues/2225#issuecomment-1531221081, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGLINQC2VHAP3FTHGVBTGR3XEDNAZANCNFSM6AAAAAARRCB3WU. You are receiving this because you were mentioned.Message ID: @.***>

marinofaggiana commented 1 year ago

When there was GPS it was a constant post of complaints, in the end it doesn't change, put the phone on charge, activate the Wi-Fi and you will see that sooner or later the photos will be loaded.

kdjordjev commented 1 year ago

Do we need specific settings for the ‘Charger activation’?

It does not work for me. Only time the images are copied is when I open the app.

I have iPhone 14 pro plus and use wireless charger. The Wi-Fi is always ON but I do not see any images copied

Get Outlook for iOShttps://aka.ms/o0ukef


From: Marino Faggiana @.> Sent: Tuesday, May 2, 2023 9:29 AM To: nextcloud/ios @.> Cc: kdjordjev @.>; Mention @.> Subject: Re: [nextcloud/ios] Autoupload not working on iOS 16.1 or 16.0 (Issue #2225)

When there was GPS it was a constant post of complaints, in the end it doesn't change, put the phone on charge, activate the Wi-Fi and you will see that sooner or later the photos will be loaded.

— Reply to this email directly, view it on GitHubhttps://github.com/nextcloud/ios/issues/2225#issuecomment-1531771925, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGLINQFU33E7YF6AJHMQSE3XEEZAFANCNFSM6AAAAAARRCB3WU. You are receiving this because you were mentioned.Message ID: @.***>

twizzayy commented 1 year ago

This is the same for me. On IOS 16.4.1 iPhone SE 2. Auto-upload does not work unless I open the app directly. There are no changes to my library of photos, even when connected to Wi-Fi and left charging overnight. The only time photos upload is when I open the app.

Respectfully, I would argue that although there have been complaints on both accounts whether photos were updated through GPS or not, at least when the background information was refreshed through GPS, it worked. I still don't see how a UI adjustment to inform users that GPS information is not being shared with any third-parties could not help curb this issue for the better.

Choosing to wait for Apple to provide an API might mean that we will be waiting for a very long time...

ueismann commented 1 year ago

Same here. Personally I don't care about the GPS feature but the automatic upload is all that matters.

fabefour commented 1 year ago

I have 2 devices. One is an iPhone 11. The other one an iPad Air 4. Both of them with latest iOS and both of them only sync when the app is in foreground. If i have WIFI connected overnight, the app opened in background and while charging all night I see no sync for days. That's definetly not the way it should be

marinofaggiana commented 1 year ago

Check in your communication.log this line:

IMG_0732

kdjordjev commented 1 year ago

Marino See below. Previous update on 04/25 Last update on 05/04 Nothing in between

In both cases above I have manually started the app to initiate the upload. In between 4/25 and 5/4 I have charged the phone every day and my WiFi is always on Simply does not work through charger. Only when the apps is started

Please add back the GPS trigger (or anything else to trigger this upload) since nothing else works

K

00:05:26 +0000> 2023-04-25 17:04:26 [INFO] Automatic upload, no new assets found [Init Auto Upload] 2023-04-25 17:04:26 [INFO] Refresh task auto upload with 0 uploads 2023-04-25 17:04:26 [INFO] Refresh task upload process with 0 uploads 2023-04-25 17:10:14 bye bye 2023-05-04 07:50:44 [INFO] Start session with level 1 Nextcloud Liquid for iOS 4.8.0.5 © 2023 in state 1 where (0 active, 1 inactive, 2 background). 2023-05-04 07:50:44 DATABASE FOUND in /private/var/mobile/Containers/Shared/AppGrxxxxxxxxxLibrary/Application Support/Nextcloud/nextcloud.realm

Get Outlook for iOShttps://aka.ms/o0ukef


From: Marino Faggiana @.> Sent: Thursday, May 4, 2023 7:17:42 AM To: nextcloud/ios @.> Cc: kdjordjev @.>; Mention @.> Subject: Re: [nextcloud/ios] Autoupload not working on iOS 16.1 or 16.0 (Issue #2225)

Check in your communication.log this line:

[IMG_0732]https://user-images.githubusercontent.com/8616947/236235096-d0aa4421-cae6-4545-9cf1-83f32ba6d279.jpg

— Reply to this email directly, view it on GitHubhttps://github.com/nextcloud/ios/issues/2225#issuecomment-1534866341, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGLINQHTFJ4KHC75GTPR6J3XEO3ANANCNFSM6AAAAAARRCB3WU. You are receiving this because you were mentioned.Message ID: @.***>

marinofaggiana commented 1 year ago

Why I read bye bye ?? You kill the app ?

kdjordjev commented 1 year ago

Not sure why. In any case the app did not wake up for many days, although the phone was charged. I am attaching the previous time as well (4/23 then next time 4/25). Phone charged every night . All transactions below happened during the day (10am / 11am) when the app was manually started.

2023-04-23 10:09:17 Network request started: GET https://nextcloud.xxxxxx.xxxxx/remote.php/dav/files/xxxxxx/Photos/2023/23-04-22%2013-40-13%200556.jpg 2023-04-23 10:09:39 [INFO] Application will resign active 2023-04-23 10:09:40 [INFO] Application did enter in background 2023-04-23 10:09:40 [SUCCESS] Refresh task success submit request 60 seconds <BGAppRefreshTaskRequest: com.nextcloud.refreshTask, earliestBeginDate: 2023-04-23 17:10:40 +0000> 2023-04-23 10:09:40 [SUCCESS] Background Processing task success submit request 5 minutes <BGProcessingTaskRequest: com.nextcloud.processingTask, earliestBeginDate: 2023-04-23 17:14:40 +0000, requiresExternalPower=0, requiresNetworkConnectivity=0> 2023-04-25 10:59:22 [INFO] Start session with level 1 Nextcloud Liquid for iOS 4.8.0.5 © 2023 in state 1 where (0 active, 1 inactive, 2 background). 2023-04-25 10:59:22 DATABASE FOUND in /private/var/mobile/Containers/Shared/AppGroup/6F7425C8-2A2D-4488-8D8F-CFE1FBAD7816/Library/Application Support/Nextcloud/nextcloud.realm

Get Outlook for iOShttps://aka.ms/o0ukef


From: Marino Faggiana @.> Sent: Thursday, May 4, 2023 10:46 AM To: nextcloud/ios @.> Cc: kdjordjev @.>; Mention @.> Subject: Re: [nextcloud/ios] Autoupload not working on iOS 16.1 or 16.0 (Issue #2225)

Why I read bye bye ?? You kill the app ?

— Reply to this email directly, view it on GitHubhttps://github.com/nextcloud/ios/issues/2225#issuecomment-1535170738, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGLINQANPSAVQIZSBZHK673XEPTPZANCNFSM6AAAAAARRCB3WU. You are receiving this because you were mentioned.Message ID: @.***>

twizzayy commented 1 year ago

@kdjordjev What @marinofaggiana is saying, I believe, is that in order for this function to work, the app needs to be left running in the background perpetually.

Then, when you plug it into charge, it will use being plugged in as the "background" event that initializes synchronization.

fabefour commented 1 year ago

2023-05-05 01:17:57 [SUCCESS] Refresh task success submit request 60 seconds <BGAppRefreshTaskRequest: com.nextcloud.refreshTask, earliestBeginDate: 2023-05-04 23:18:57 +0000> 2023-05-05 01:17:57 [SUCCESS] Background Processing task success submit request 5 minutes <BGProcessingTaskRequest: com.nextcloud.processingTask, earliestBeginDate: 2023-05-04 23:22:57 +0000, requiresExternalPower=0, requiresNetworkConnectivity=0> 2023-05-05 01:17:57 [INFO] Processing task 2023-05-05 01:17:57 [INFO] Refresh task auto upload with 0 uploads 2023-05-05 01:17:57 [INFO] Refresh task upload process with 0 uploads 2023-05-05 01:48:54 [SUCCESS] Background Processing task success submit request 5 minutes <BGProcessingTaskRequest: com.nextcloud.processingTask, earliestBeginDate: 2023-05-04 23:53:54 +0000, requiresExternalPower=0, requiresNetworkConnectivity=0> 2023-05-05 01:48:54 [INFO] Processing task 2023-05-05 02:19:01 [SUCCESS] Background Processing task success submit request 5 minutes <BGProcessingTaskRequest: com.nextcloud.processingTask, earliestBeginDate: 2023-05-05 00:24:01 +0000, requiresExternalPower=0, requiresNetworkConnectivity=0> 2023-05-05 02:19:01 [INFO] Processing task 2023-05-05 02:49:02 [SUCCESS] Background Processing task success submit request 5 minutes <BGProcessingTaskRequest: com.nextcloud.processingTask, earliestBeginDate: 2023-05-05 00:54:02 +0000, requiresExternalPower=0, requiresNetworkConnectivity=0> I tried it again this night and had a look at the communications log this morning. I do indeed have more than enough wake ups. The task is started more or less every 1-2 hours. However nothing is synced. As I started the app in foreground this morning to download I had a bunch of PROPFIND GET and PUT requests. This is just normal sync activity on this device. No autoupload folder is used on this one. So the stuff that matters only happens when in foreground. There are some messages about "upload" and "auto upload". I have to check logs on the other device with auto upload activated when I get hands on.

On the other device I use autoupload of the photos folder. As it is the device of my wife and I do not force her to use the nextcloud app, I am stuck at only a few hundred mb of upload. I took care that the Nextcloud app is still opened in background and it is always connected to wifi. However the auto upload of photos never happens, except when the app is in foreground.

So I would say this is not an issue with the wake up, but with the tasks the background activity triggers. Or better to say. What it not triggers but should do...

As I understand from the logs, only uploads and auto uploads should be put on the server. Why the auto uploads on my other device do not work has still to be discovered.

I would propose to perform a complete sync action while connected to WIFI and at least while charging. And if not as default, then at least a default disabled option to activate this.

Is this the way the app is designed? I expect a cloud that is synced like a cloud when i use it. Not only a one way sync from the mobile device into the cloud. That i regularly have to keep the app in forgeround to get synced with the real state of the cloud to be able to work with stuff that happened on other devices in the meantime is not, what i expect, when using a cloud setup.

marinofaggiana commented 1 year ago

[INFO] Refresh task upload process with 0 uploads

Nothing photo to be send.

kdjordjev commented 1 year ago

@twizzay-code I understand that the app needs to be on and in background. I gave another example between 4/23 and 4/25 where the app was active, i charged but did not do anything.

@marinofaggiana just to make a clear experiment and log is below:

So I still claim there is an issue here

Log File:

2023-05-04 20:06:11 [INFO] Clear log with level 1 Nextcloud Liquid for iOS 4.8.0.5 © 2023 2023-05-04 20:06:18 [INFO] Application will resign active 2023-05-04 20:06:19 [INFO] Application did enter in background 2023-05-04 20:06:19 [SUCCESS] Refresh task success submit request 60 seconds <BGAppRefreshTaskRequest: com.nextcloud.refreshTask, earliestBeginDate: 2023-05-05 03:07:19 +0000> 2023-05-04 20:06:19 [SUCCESS] Background Processing task success submit request 5 minutes <BGProcessingTaskRequest: com.nextcloud.processingTask, earliestBeginDate: 2023-05-05 03:11:19 +0000, requiresExternalPower=0, requiresNetworkConnectivity=0> 2023-05-05 07:24:10 [SUCCESS] Background Processing task success submit request 5 minutes <BGProcessingTaskRequest: com.nextcloud.processingTask, earliestBeginDate: 2023-05-05 14:29:10 +0000, requiresExternalPower=0, requiresNetworkConnectivity=0> 2023-05-05 07:24:10 [INFO] Processing task 2023-05-05 07:54:20 [SUCCESS] Background Processing task success submit request 5 minutes <BGProcessingTaskRequest: com.nextcloud.processingTask, earliestBeginDate: 2023-05-05 14:59:20 +0000, requiresExternalPower=0, requiresNetworkConnectivity=0> 2023-05-05 07:54:20 [INFO] Processing task 2023-05-05 07:58:42 [INFO] Application will enter in foreground 2023-05-05 07:58:42 [PINNING] Start 2023-05-05 07:58:42 [PINNING] Extarct certificate txt 2023-05-05 07:58:42 Network request started: GET https://nextcloud.xxxxxxx.xxxx/status.php 2023-05-05 07:58:42 Network request started: GET https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/cloud/user 2023-05-05 07:58:42 [INFO] Application did become active 2023-05-05 07:58:42 [INFO] Automatic upload, new 1 assets found [Init Auto Upload] 2023-05-05 07:58:42 Network request started: MKCOL https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv/Photos 2023-05-05 07:58:42 [PINNING] Server trusted 2023-05-05 07:58:42 [PINNING] Start 2023-05-05 07:58:42 [PINNING] Extarct certificate txt 2023-05-05 07:58:42 [PINNING] Start 2023-05-05 07:58:42 [PINNING] Extarct certificate txt 2023-05-05 07:58:42 [PINNING] Server trusted 2023-05-05 07:58:42 [PINNING] Server trusted 2023-05-05 07:58:45 Network response request: https://nextcloud.xxxxxxx.xxxx/status.php, result: success(170 bytes) 2023-05-05 07:58:45 Network response request: https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/cloud/user, result: success(1004 bytes) 2023-05-05 07:58:45 Network request started: REPORT https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv 2023-05-05 07:58:45 Network request started: No request created yet. 2023-05-05 07:58:45 Network request started: GET https://nextcloud.xxxxxxx.xxxx/ocs/v1.php/cloud/capabilities 2023-05-05 07:58:45 Network request started: GET https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/apps/dashboard/api/v1/widgets 2023-05-05 07:58:45 [PINNING] Start 2023-05-05 07:58:45 [PINNING] Start 2023-05-05 07:58:45 [PINNING] Extarct certificate txt 2023-05-05 07:58:45 [PINNING] Extarct certificate txt 2023-05-05 07:58:45 Network request started: MKCOL https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv/Photos/2023 2023-05-05 07:58:45 [PINNING] Server trusted 2023-05-05 07:58:45 [PINNING] Server trusted 2023-05-05 07:58:46 [INFO] Automatic upload added 23-05-04 20-06-35 0563.heic with Identifier 0B6864FD-1C1A-4648-A677-3FEA5218DF4B/L0/001 2023-05-05 07:58:46 [INFO] Start createProcessUploads 2023-05-05 07:58:46 [INFO] Initialize Auto upload with 1 uploads 2023-05-05 07:58:46 [INFO] PROCESS-UPLOAD find 1 items 2023-05-05 07:58:46 Network response request: https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv, result: success(156 bytes) 2023-05-05 07:58:46 [INFO] Upload file 23-05-04 20-06-35 0563.jpg with Identifier 0B6864FD-1C1A-4648-A677-3FEA5218DF4B/L0/001 with size 3091383 [CHUNCK false, E2EE false] 2023-05-05 07:58:46 Network start upload file: https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv/Photos/2023/23-05-04 20-06-35 0563.jpg 2023-05-05 07:58:46 [INFO] Upload file 23-05-04 20-06-35 0563.jpg with task with taskIdentifier 1 2023-05-05 07:58:46 [INFO] Upload file 23-05-04 20-06-35 0563.mov with Identifier with size 2337439 [CHUNCK false, E2EE false] 2023-05-05 07:58:46 Network request started: GET https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/apps/files/api/v1/directEditing 2023-05-05 07:58:46 Network start upload file: https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv/Photos/2023/23-05-04 20-06-35 0563.mov 2023-05-05 07:58:46 [INFO] Upload file 23-05-04 20-06-35 0563.mov with task with taskIdentifier 2 2023-05-05 07:58:46 Network response request: https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/apps/dashboard/api/v1/widgets, result: success(1276 bytes) 2023-05-05 07:58:46 Network request started: GET https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/apps/user_status/api/v1/user_status 2023-05-05 07:58:46 Network request started: GET https://nextcloud.xxxxxxx.xxxx/apps/files/img/app.svg 2023-05-05 07:58:46 [PINNING] Start 2023-05-05 07:58:46 [PINNING] Extarct certificate txt 2023-05-05 07:58:46 [PINNING] Server trusted 2023-05-05 07:58:46 [PINNING] Start 2023-05-05 07:58:46 [PINNING] Extarct certificate txt 2023-05-05 07:58:46 [PINNING] Server trusted 2023-05-05 07:58:46 Network request started: GET https://nextcloud.xxxxxxx.xxxx/apps/user_status/img/app-dark.svg 2023-05-05 07:58:46 Network request started: GET https://nextcloud.xxxxxxx.xxxx/apps/activity/img/activity-dark.svg 2023-05-05 07:58:46 Network request started: GET https://nextcloud.xxxxxxx.xxxx/custom_apps/calendar/img/calendar-dark.svg 2023-05-05 07:58:46 Network response request: https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/apps/files/api/v1/directEditing, result: success(1817 bytes) 2023-05-05 07:58:46 Network response request: https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/apps/user_status/api/v1/user_status, result: success(228 bytes) 2023-05-05 07:58:47 Network completed upload file: https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv/Photos/2023/23-05-04 20-06-35 0563.mov 2023-05-05 07:58:47 Network completed upload file: https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv/Photos/2023/23-05-04 20-06-35 0563.jpg 2023-05-05 07:58:47 [SUCCESS] Upload complete https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv/Photos/2023/23-05-04 20-06-35 0563.mov, result: success(2337439 bytes) 2023-05-05 07:58:47 [SUCCESS] Upload complete https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv/Photos/2023/23-05-04 20-06-35 0563.jpg, result: success(3091383 bytes) 2023-05-05 08:00:49 [INFO] Application will resign active 2023-05-05 08:00:50 [INFO] Application did enter in background 2023-05-05 08:00:50 [SUCCESS] Refresh task success submit request 60 seconds <BGAppRefreshTaskRequest: com.nextcloud.refreshTask, earliestBeginDate: 2023-05-05 15:01:50 +0000> 2023-05-05 08:00:50 [SUCCESS] Background Processing task success submit request 5 minutes <BGProcessingTaskRequest: com.nextcloud.processingTask, earliestBeginDate: 2023-05-05 15:05:50 +0000, requiresExternalPower=0, requiresNetworkConnectivity=0> 2023-05-05 08:00:52 [INFO] Application will enter in foreground 2023-05-05 08:00:52 Network request started: GET https://nextcloud.xxxxxxx.xxxx/status.php 2023-05-05 08:00:52 Network request started: GET https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/cloud/user 2023-05-05 08:00:52 [PINNING] Start 2023-05-05 08:00:52 [PINNING] Extarct certificate txt 2023-05-05 08:00:52 [PINNING] Start 2023-05-05 08:00:52 [PINNING] Extarct certificate txt 2023-05-05 08:00:52 [PINNING] Server trusted 2023-05-05 08:00:52 [PINNING] Server trusted 2023-05-05 08:00:52 [INFO] Application did become active 2023-05-05 08:00:52 [INFO] Automatic upload, no new assets found [Init Auto Upload] 2023-05-05 08:00:52 [INFO] Initialize Auto upload with 0 uploads 2023-05-05 08:00:53 Network response request: https://nextcloud.xxxxxxx.xxxx/status.php, result: success(170 bytes) 2023-05-05 08:00:54 Network response request: https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/cloud/user, result: success(1004 bytes) 2023-05-05 08:00:54 Network request started: REPORT https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv 2023-05-05 08:00:54 Network request started: GET https://nextcloud.xxxxxxx.xxxx/index.php/avatar/userv/384 2023-05-05 08:00:54 Network request started: GET https://nextcloud.xxxxxxx.xxxx/ocs/v1.php/cloud/capabilities 2023-05-05 08:00:54 Network request started: No request created yet. 2023-05-05 08:00:54 [PINNING] Start 2023-05-05 08:00:54 [PINNING] Extarct certificate txt 2023-05-05 08:00:54 [PINNING] Start 2023-05-05 08:00:54 [PINNING] Extarct certificate txt 2023-05-05 08:00:54 [PINNING] Server trusted 2023-05-05 08:00:54 [PINNING] Server trusted 2023-05-05 08:00:55 Network response request: https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/apps/dashboard/api/v1/widgets, result: success(1276 bytes) 2023-05-05 08:00:55 Network request started: No request created yet. 2023-05-05 08:00:55 Network request started: GET https://nextcloud.xxxxxxx.xxxx/custom_apps/calendar/img/calendar-dark.svg 2023-05-05 08:00:55 Network request started: GET https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/apps/user_status/api/v1/user_status 2023-05-05 08:00:55 Network response request: https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv, result: success(156 bytes) 2023-05-05 08:00:55 Network request started: GET https://nextcloud.xxxxxxx.xxxx/apps/files/img/app.svg 2023-05-05 08:00:55 Network request started: GET https://nextcloud.xxxxxxx.xxxx/apps/activity/img/activity-dark.svg 2023-05-05 08:00:55 Network response request: https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/apps/files/api/v1/directEditing, result: success(1817 bytes) 2023-05-05 08:00:55 Network response request: https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/apps/user_status/api/v1/user_status, result: success(228 bytes) 2023-05-05 08:00:55 Network request started: GET https://nextcloud.xxxxxxx.xxxx/apps/user_status/img/app-dark.svg 2023-05-05 08:00:55 Network request started: PROPFIND https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv 2023-05-05 08:00:56 Network response request: https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv, result: success(1697 bytes) 2023-05-05 08:00:56 Network request started: PROPFIND https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv/ 2023-05-05 08:00:56 [INFO] Application will resign active 2023-05-05 08:00:56 Network response request: https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv/, result: success(9813 bytes) 2023-05-05 08:00:57 [INFO] Application did enter in background 2023-05-05 08:00:57 [SUCCESS] Refresh task success submit request 60 seconds <BGAppRefreshTaskRequest: com.nextcloud.refreshTask, earliestBeginDate: 2023-05-05 15:01:57 +0000> 2023-05-05 08:00:57 [SUCCESS] Background Processing task success submit request 5 minutes <BGProcessingTaskRequest: com.nextcloud.processingTask, earliestBeginDate: 2023-05-05 15:05:57 +0000, requiresExternalPower=0, requiresNetworkConnectivity=0> 2023-05-05 08:06:18 [INFO] Application will enter in foreground 2023-05-05 08:06:18 [PINNING] Start 2023-05-05 08:06:18 [PINNING] Start 2023-05-05 08:06:18 [PINNING] Extarct certificate txt 2023-05-05 08:06:18 [PINNING] Extarct certificate txt 2023-05-05 08:06:18 [PINNING] Server trusted 2023-05-05 08:06:18 [PINNING] Server trusted 2023-05-05 08:06:18 Network request started: GET https://nextcloud.xxxxxxx.xxxx/status.php 2023-05-05 08:06:18 Network request started: GET https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/cloud/user 2023-05-05 08:06:18 [PINNING] Start 2023-05-05 08:06:18 [PINNING] Extarct certificate txt 2023-05-05 08:06:18 [PINNING] Server trusted 2023-05-05 08:06:18 Network request started: PROPFIND https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv 2023-05-05 08:06:19 [INFO] Application did become active 2023-05-05 08:06:19 [INFO] Automatic upload, no new assets found [Init Auto Upload] 2023-05-05 08:06:19 [INFO] Initialize Auto upload with 0 uploads 2023-05-05 08:06:21 Network response request: https://nextcloud.xxxxxxx.xxxx/status.php, result: success(170 bytes) 2023-05-05 08:06:22 Network response request: https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/cloud/user, result: success(1004 bytes) 2023-05-05 08:06:22 Network request started: REPORT https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv 2023-05-05 08:06:22 Network request started: GET https://nextcloud.xxxxxxx.xxxx/index.php/avatar/userv/384 2023-05-05 08:06:22 Network request started: No request created yet. 2023-05-05 08:06:22 Network request started: GET https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/apps/dashboard/api/v1/widgets 2023-05-05 08:06:22 Network response request: https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv, result: success(1697 bytes) 2023-05-05 08:06:22 [PINNING] Start 2023-05-05 08:06:22 [PINNING] Extarct certificate txt 2023-05-05 08:06:22 [PINNING] Server trusted 2023-05-05 08:06:22 Network response request: https://nextcloud.xxxxxxx.xxxx/remote.php/dav/files/userv, result: success(156 bytes) 2023-05-05 08:06:22 Network response request: https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/apps/dashboard/api/v1/widgets, result: success(1276 bytes) 2023-05-05 08:06:22 Network request started: GET https://nextcloud.xxxxxxx.xxxx/custom_apps/calendar/img/calendar-dark.svg 2023-05-05 08:06:22 Network request started: GET https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/apps/files/api/v1/directEditing 2023-05-05 08:06:22 Network request started: GET https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/apps/user_status/api/v1/user_status 2023-05-05 08:06:22 Network request started: GET https://nextcloud.xxxxxxx.xxxx/apps/user_status/img/app-dark.svg 2023-05-05 08:06:22 Network request started: GET https://nextcloud.xxxxxxx.xxxx/apps/files/img/app.svg 2023-05-05 08:06:22 Network request started: GET https://nextcloud.xxxxxxx.xxxx/apps/activity/img/activity-dark.svg 2023-05-05 08:06:22 Network response request: https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/apps/files/api/v1/directEditing, result: success(1817 bytes) 2023-05-05 08:06:22 Network response request: https://nextcloud.xxxxxxx.xxxx/ocs/v2.php/apps/user_status/api/v1/user_status, result: success(228 bytes)

marinofaggiana commented 1 year ago

Is your Background App Refresh on ON:

Simulator Screenshot - iPhone 14 - 2023-05-05 at 17 27 12

kdjordjev commented 1 year ago

Yes . It is. See image

Also just to add another point I checked my wife’s Nextcloud. Similar situation. She had it in open and in background. When I moved the app in foreground, it transferred 50 photos which were taken weeks ago. So her app was sitting for weeks in background without transferring.

Get Outlook for iOShttps://aka.ms/o0ukef


From: Marino Faggiana @.> Sent: Friday, May 5, 2023 8:29 AM To: nextcloud/ios @.> Cc: kdjordjev @.>; Mention @.> Subject: Re: [nextcloud/ios] Autoupload not working on iOS 16.1 or 16.0 (Issue #2225)

Is your Background App Refresh on ON:

[Simulator Screenshot - iPhone 14 - 2023-05-05 at 17 27 12]https://user-images.githubusercontent.com/8616947/236501375-67ae777c-00e9-4f66-9d8d-d2841fd49d9b.png

— Reply to this email directly, view it on GitHubhttps://github.com/nextcloud/ios/issues/2225#issuecomment-1536427106, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGLINQH6PZY4F743VK3UE7DXEUMEVANCNFSM6AAAAAARRCB3WU. You are receiving this because you were mentioned.Message ID: @.***>

Ridderxxl commented 1 year ago

Just to pile on here, this is exactly the behaviour I am seeing on the phone of my gf. I am a happy man with my android phone because uploads work like a charm. But as mentioned above the app will only uploads when opened by the user. The moment you leave the app (not close it) in the background, nothing happens until you open it again manually

fabefour commented 1 year ago

2023-05-04 12:50:32 [INFO] Application did enter in background 2023-05-04 12:50:32 [SUCCESS] Refresh task success submit request 60 seconds <BGAppRefreshTaskRequest: com.nextcloud.refreshTask, earliestBeginDate: 2023-05-04 10:51:32 +0000> 2023-05-04 12:50:32 [SUCCESS] Background Processing task success submit request 5 minutes <BGProcessingTaskRequest: com.nextcloud.processingTask, earliestBeginDate: 2023-05-04 10:55:32 +0000, requiresExternalPower=0, requiresNetworkConnectivity=0> 2023-05-04 12:50:33 [INFO] Automatic upload, no new assets found [Init Auto Upload] 2023-05-04 12:50:33 [INFO] Initialize Auto upload with 0 uploads 2023-05-04 12:50:34 Network request started: REPORT https://someserver.someurl/somesubfolder/remote.php/dav/files/user (207) 2023-05-04 12:50:34 Network request started: GET https://someserver.someurl/somesubfolder/index.php/avatar/user/256 (304) 2023-05-04 12:50:34 Network request started: GET https://someserver.someurl/somesubfolder/ocs/v1.php/cloud/capabilities (200) 2023-05-04 12:50:34 Network request started: GET https://someserver.someurl/somesubfolder/ocs/v2.php/apps/dashboard/api/v1/widgets (200) 2023-05-04 12:50:34 Network response request: https://someserver.someurl/somesubfolder/ocs/v2.php/apps/dashboard/api/v1/widgets, result: success(1567 bytes) 2023-05-04 12:50:34 Network response request: https://someserver.someurl/somesubfolder/remote.php/dav/files/user, result: success(156 bytes) 2023-05-04 15:02:18 [INFO] Start session with level 1 Nextcloud Liquid for iOS 4.8.0.5 © 2023 in state 2 where (0 active, 1 inactive, 2 background). 2023-05-04 15:02:18 DATABASE FOUND in /private/var/mobile/Containers/Shared/AppGroup/5CD8E86A-3E9A-4451-9810-8B0EC824B46B/Library/Application Support/Nextcloud/nextcloud.realm 2023-05-04 15:02:18 Account active user https://someserver.someurl/somesubfolder 2023-05-04 15:02:18 [SUCCESS] Background Processing task success submit request 5 minutes <BGProcessingTaskRequest: com.nextcloud.processingTask, earliestBeginDate: 2023-05-04 13:07:18 +0000, requiresExternalPower=0, requiresNetworkConnectivity=0> 2023-05-04 15:02:18 [INFO] Processing task 2023-05-04 15:02:19 [PINNING] Start 2023-05-04 15:02:19 [PINNING] Extarct certificate txt 2023-05-04 15:02:19 [PINNING] Server trusted 2023-05-04 15:02:19 Network request started: PROPFIND https://someserver.someurl/somesubfolder/remote.php/dav/files/user 2023-05-04 15:02:19 [PINNING] Start 2023-05-04 15:02:19 [PINNING] Extarct certificate txt 2023-05-04 15:02:19 [PINNING] Server trusted 2023-05-04 15:02:19 [PINNING] Start 2023-05-04 15:02:19 [PINNING] Extarct certificate txt 2023-05-04 15:02:19 [PINNING] Server trusted 2023-05-04 15:02:20 Network request started: HEAD https://push-notifications.nextcloud.com/ (404) 2023-05-04 15:02:21 Network response request: https://someserver.someurl/somesubfolder/remote.php/dav/files/user, result: success(1708 bytes) 2023-05-04 15:02:21 Network request started: PROPFIND https://someserver.someurl/somesubfolder/remote.php/dav/files/user/ (207) 2023-05-04 15:02:21 Network response request: https://someserver.someurl/somesubfolder/remote.php/dav/files/user/, result: success(9350 bytes) 2023-05-04 18:23:09 [INFO] Start session with level 1 Nextcloud Liquid for iOS 4.8.0.5 © 2023 in state 2 where (0 active, 1 inactive, 2 background). 2023-05-04 18:23:09 DATABASE FOUND in /private/var/mobile/Containers/Shared/AppGroup/5CD8E86A-3E9A-4451-9810-8B0EC824B46B/Library/Application Support/Nextcloud/nextcloud.realm 2023-05-04 18:23:09 Account active user https://someserver.someurl/somesubfolder 2023-05-04 18:23:10 [SUCCESS] Background Processing task success submit request 5 minutes <BGProcessingTaskRequest: com.nextcloud.processingTask, earliestBeginDate: 2023-05-04 16:28:10 +0000, requiresExternalPower=0, requiresNetworkConnectivity=0> 2023-05-04 18:23:10 [INFO] Processing task 2023-05-04 18:23:10 [PINNING] Start 2023-05-04 18:23:10 [PINNING] Extarct certificate txt 2023-05-04 18:23:10 [PINNING] Server trusted 2023-05-04 18:23:10 Network request started: PROPFIND https://someserver.someurl/somesubfolder/remote.php/dav/files/user 2023-05-04 18:23:10 Network request started: HEAD https://push-notifications.nextcloud.com 2023-05-04 18:23:10 [PINNING] Start 2023-05-04 18:23:10 [PINNING] Extarct certificate txt 2023-05-04 18:23:10 [PINNING] Server trusted 2023-05-05 10:48:32 [INFO] Start session with level 1 Nextcloud Liquid for iOS 4.8.0.5 © 2023 in state 2 where (0 active, 1 inactive, 2 background). 2023-05-05 10:48:32 DATABASE FOUND in /private/var/mobile/Containers/Shared/AppGroup/5CD8E86A-3E9A-4451-9810-8B0EC824B46B/Library/Application Support/Nextcloud/nextcloud.realm 2023-05-05 10:48:32 Account active user https://someserver.someurl/somesubfolder 2023-05-05 10:48:32 [SUCCESS] Background Processing task success submit request 5 minutes <BGProcessingTaskRequest: com.nextcloud.processingTask, earliestBeginDate: 2023-05-05 08:53:32 +0000, requiresExternalPower=0, requiresNetworkConnectivity=0> 2023-05-05 10:48:32 [INFO] Processing task 2023-05-05 10:48:33 [PINNING] Start 2023-05-05 10:48:33 [PINNING] Extarct certificate txt 2023-05-05 10:48:33 [PINNING] Server trusted 2023-05-05 10:48:33 Network request started: PROPFIND https://someserver.someurl/somesubfolder/remote.php/dav/files/user 2023-05-05 10:48:33 Network request started: HEAD https://push-notifications.nextcloud.com 2023-05-05 10:48:33 [PINNING] Start 2023-05-05 10:48:33 [PINNING] Extarct certificate txt 2023-05-05 10:48:33 [PINNING] Server trusted 2023-05-05 10:48:33 Network response request: https://someserver.someurl/somesubfolder/remote.php/dav/files/user, result: success(1708 bytes) 2023-05-05 13:25:25 [INFO] Start session with level 1 Nextcloud Liquid for iOS 4.8.0.5 © 2023 in state 1 where (0 active, 1 inactive, 2 background). 2023-05-05 13:25:25 DATABASE FOUND in /private/var/mobile/Containers/Shared/AppGroup/5CD8E86A-3E9A-4451-9810-8B0EC824B46B/Library/Application Support/Nextcloud/nextcloud.realm 2023-05-05 13:25:25 Account active user https://someserver.someurl/somesubfolder 2023-05-05 13:25:25 [PINNING] Start 2023-05-05 13:25:25 [PINNING] Extarct certificate txt 2023-05-05 13:25:25 [PINNING] Server trusted 2023-05-05 13:25:25 Network request started: PROPFIND https://someserver.someurl/somesubfolder/remote.php/dav/files/user 2023-05-05 13:25:25 [INFO] Application did become active So this is the log of the phone of my wife. She has several GB of photos that should be submitted and autoupload of the photos folder is on. However the uploads only happen when in foreground. There is definetly something wrong.

It says "[INFO] Automatic upload, no new assets found". There are several GB of files waiting for transmission. As soon as the App is in foreground transmission continues.

Even when the background task is designed to only upload newly taken photos. This does definetly not work. She made pictures and videos in the meantime and nothing of it got synced.

On the other hand, i tried auto upload with my iPad with a clean setup and an empty photos folder. On this device i had success with background sync. At least in 2 test runs. New photos were synced in the background task. I cannot see what's the difference there...

@marinofaggiana We are presently only talking about the autoupload feature. Can you confirm that a real sync of all files in the cloud while in background is not the way the app is designed. Only to upload new changed files on the local device / files in the auto upload folder? Why is this? Are there limitations in iOS? Or is this a decision to keep traffic as low as possible?

ueismann commented 1 year ago

Is your Background App Refresh on ON:

Simulator Screenshot - iPhone 14 - 2023-05-05 at 17 27 12

The "Background App Refresh" Button is greyed out on my iPhone, so it cannot be switched off.

fabefour commented 1 year ago

Yes, it is

Queuecumber commented 1 year ago

This really needs to be reopened and addressed by the development team. There are a significant number of affected users here and from what I've seen the response seems to be along the lines of "We don't believe you're doing it correctly."

I'm really troubled by some of the developer responses here, I understand that this is a frustrating and complex issue to debug but brushing aside the user concerns isn't helping. Here's a recent interaction:

Why I read bye bye ?? You kill the app ?

Do you really think this person explicitly killed the app and then blamed your code?

[INFO] Refresh task upload process with 0 uploads Nothing photo to be send.

Again do you really think that the person took 0 pictures and then complained that the app didn't upload their photos?

There are several repeated questions to people reporting this issue

  1. Is your background refresh on? - In every case yeah it is so that is not the problem
  2. Are you plugging your phone in and turning on your WiFi? - In every case, yeah they are and can you really imagine a reasonable scenario when a person would never have their wifi on and their phone plugged in at the same time? I imagine most people do this daily but even if they didn't they have to charge at some point, what are the odds that it is every time happening in a place without wifi. Also: why should we even need both?

I can confirm the multitude of posts here that background sync just doesn't work reliably. Background refresh is definitely on and I have tried charging and wifi. The only thing does work is putting the app into the foreground.

There is clearly something wrong with the background auto upload and it is time to acknowledge that and work towards a solution rather than pointing fingers at the users or at apple. Other apps like Dropbox/Google photos/etc. don't have this issue, they work around it somehow, maybe using the GPS method. If that is the case, then please add the GPS code back in and disable it by default for the privacy conscious.

This isn't intended to be hostile towards the developers but it is time to seriously consider coding a potential solution rather than continuing to say this isn't a real problem.

ueismann commented 1 year ago

+1

kdjordjev commented 1 year ago

+2

Get Outlook for iOShttps://aka.ms/o0ukef


From: uice @.> Sent: Thursday, June 22, 2023 7:38:08 AM To: nextcloud/ios @.> Cc: kdjordjev @.>; Mention @.> Subject: Re: [nextcloud/ios] Autoupload not working on iOS 16.1 or 16.0 (Issue #2225)

+1

— Reply to this email directly, view it on GitHubhttps://github.com/nextcloud/ios/issues/2225#issuecomment-1602756809, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGLINQDKYE6CY5HLVGGEMELXMRKFBANCNFSM6AAAAAARRCB3WU. You are receiving this because you were mentioned.Message ID: @.***>

Mary908P commented 1 year ago

https://github.com/nextcloud/ios/issues/2225#issue-1427252560

jordanbray commented 11 months ago

I'm just chiming in to say that I ran into this as well yesterday. All settings verified, iOS updated to the latest version, nextcloud updated, etc. I'm happy to provide more information as needed, but at this point, it seems like all the information is already in this thread, another issue thread, and all over the rest of the internet with a search for "nextcloud ios sync".

We are doing what everyone else seems to be doing, which is syncing the files by opening the app, leaving it in the foreground, and not letting it go to sleep. We have also learned to turn down the screen brightness so the phone doesn't get as hot.

gaticssa commented 11 months ago

There is clearly something wrong with the background auto upload and it is time to acknowledge that and work towards a solution rather than pointing fingers at the users or at apple. Other apps like Dropbox/Google photos/etc. don't have this issue, they work around it somehow, maybe using the GPS method. If that is the case, then please add the GPS code back in and disable it by default for the privacy conscious.

I agree with Queuecumber's quoted comment. After reading through most of the numerous issues and threads regarding the background sync problem, I have yet to discover a single compelling technical reason why the GPS-based method was "ripped out" and replaced by a new mechanism that appears to be worse by far.

In my opinion, some people misunderstanding the usage of GPS in the Nextcloud app does not really justify seriously degrading a core feature. A more appropriate response would be educating those users via more detailed documentation, FAQs etc. or giving them a choice to disable the GPS usage.

plantroon commented 10 months ago

This was a real bad surprise for me now that I am test driving an iPhone. Like wow, everything other than iCloud is crippled. Antitrust anyone?

triggerx commented 10 months ago

This was a real bad surprise for me now that I am test driving an iPhone. Like wow, everything other than iCloud is crippled. Antitrust anyone?

This is crippled because the Nextcloud developers are choosing to cripple it. Also, "everything other than iCloud is crippled" is 100% false since there's dozens of other apps in the App Store that seem to have no troubles auto-uploading photos in the background. They're using magic that the Nextcloud developers can't seem to figure out.

plantroon commented 10 months ago

This was a real bad surprise for me now that I am test driving an iPhone. Like wow, everything other than iCloud is crippled. Antitrust anyone?

This is crippled because the Nextcloud developers are choosing to cripple it. Also, "everything other than iCloud is crippled" is 100% false since there's dozens of other apps in the App Store that seem to have no troubles auto-uploading photos in the background. They're using magic that the Nextcloud developers can't seem to figure out.

Which ones though? Even the ones that worked for a bit like Immich became unreliable over time. OneDrive auto upload is also hit or miss. So Apple is still to blame.

Queuecumber commented 10 months ago

Google photos works totally fine

plantroon commented 10 months ago

@Queuecumber you tried it over a period of time without ever opening the app? Seriously I don't know of an app that can do this and I doubt that Google is the only one to figure it out ;(

Queuecumber commented 10 months ago

Yes we've been using it for years without issue, and I'm pretty sure they use the GPS trick because I've noticed it doing uploads when we change location

Queuecumber commented 10 months ago

@marinofaggiana I would really appreciate an update on this