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

"Set as available offline" stops when swiping the control center #2523

Open alx-xlx opened 1 year ago

alx-xlx commented 1 year ago

Steps to reproduce

  1. Open the Nextcloud App and "Set as available offline" a big video file of at least 400MB
  2. While the file is downloading do (Swipe down the Control Center / Lock the screen / even slight swipe down of lock screen)
  3. The downloading stops as soon as 2. is done
  4. To fix it we have to refresh app using swipe down and start again

Expected behaviour

I think the downloading (including all nextcloud activities) should stop when the screen is locked as it would be efficient and save battery. However the downloading or any such activities shouldn't stop even when it goes in background as long as screen is not locked.

Actual behaviour

"Set as available offline", when this is selected and the file is actively downloading and as soon as the screen is disturbed then the downloading stops.

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?

Swiping the Control Center on Ipad and nextcloud stoping downloading is not good

Environment data

iOS version: 16.5.1

Nextcloud iOS app version: 4.8.4.4

Server operating system: Raspberry Pi OS 64

Web server: Apache

Database: mysql

PHP version: 8.2

Nextcloud version: 26.02

dogra25130 commented 10 months ago

@marinofaggiana Just wanted to check if we want this feature. I can see in our App Delegate in applicationWillResignActive we are deliberately calling cancelAllDownloadTransfer(). As a result of this even if the user gets a phone call or opens the control center, downloading will be stopped.