ios-legacy icon indicating copy to clipboard operation
ios-legacy copied to clipboard

iOS owncloud app does not background upload with cellular data disabled

Open graysky2 opened this issue 9 years ago • 18 comments

Steps to reproduce

  1. Settings>ownCloud>Location=Always
  2. Settings>ownCloud>Photos=On
  3. Settings>ownCloud>Background App Refresh=On
  4. Settings>ownCloud>Cellular Data=Off
  5. ownCloud app itself>Settings>Instant Upload=On

Expected behaviour

Since cellular data is disabled (per above), when the phone connects to a Wifi network, all photos should be uploaded in the background.

Actual behaviour

No photos are uploaded until the user manually loads the app on the phone.

Server configuration

Web server: apache 2.4.20

Database: mariadb 10.1.14

PHP version: 7.0.4

Client

iOS version: 9.3.2

ownCloud app version: 3.4.9

Device model: iPhone 6s or iPhone 5s

graysky2 avatar Jul 04 '16 16:07 graysky2

Related to https://github.com/owncloud/ios/issues/352?

graysky2 avatar Jul 04 '16 17:07 graysky2

Hi @graysky2, no, it is not related with #352

Could you check it with latest 3.5.0 version?

Within 3.5.0 a huge refactor over network process and uploads have been done.

Reopen if needed. Thanks!

nasli avatar Aug 24 '16 10:08 nasli

I will try it with 3.5.0 and report back here in a few days.

graysky2 avatar Aug 24 '16 19:08 graysky2

Version 3.5.1 is still broken with respect to this issue.

graysky2 avatar Oct 17 '16 10:10 graysky2

@nasli Can you repoen?

graysky2 avatar Oct 25 '16 11:10 graysky2

@graysky2 could you provide us more information, iPhone model and version? Thanks cc: @jesmrec

nasli avatar Nov 03 '16 12:11 nasli

I could reproduce it with:

  • iPad v10.0.2.
  • iPhone6 v9.3.5

stablebranch version 3.5.1. build 21b6423

The instant uploads are not triggered if the app is in background and the wifi is enabled (because mobile data are lost or because there was any connection and wifi is enabled)

CC @nasli

jesmrec avatar Nov 03 '16 13:11 jesmrec

@nasli - iPhone5s and iPhone6s on v10.0.2 and v10.1.1 (both tested on both iOS version).

graysky2 avatar Nov 03 '16 18:11 graysky2

@jesmrec is a regression in 3.5.1? and still happens in current master branch?

nasli avatar Nov 04 '16 07:11 nasli

it happens also in master and in 3.5.0, so it is not a regression from that version.

jesmrec avatar Nov 04 '16 08:11 jesmrec

@graysky2 could you check if it works with a significant change of location? you can simulate the change of location by disabilng and enabling location services in the device settings.

jesmrec avatar Nov 22 '16 11:11 jesmrec

@jesmrec - Yes, I will try and report back.

graysky2 avatar Nov 23 '16 16:11 graysky2

@jesmrec - It is not working. Do it work for you or anyone else? I'd like to rule out something on my hardware/setup if so.

graysky2 avatar Nov 25 '16 17:11 graysky2

@graysky2 The steps would be the following ones, do you agree?

  1. Settings in https://github.com/owncloud/ios/issues/720#issue-163705821. Device with SIM card and initially, wifi disabled/not accesible. Background mode enabled in oC app.
  2. Change to another app (put ownCloud in background).
  3. After 3 minutes, take some photos (they are not uploaded)
  4. Enable wifi connection in device
  5. Disable location services in device settings, and after that enable it again (photos taken in 3. are not uploaded, they should)
  6. Open the app (photos are uploaded)

CC @nasli

jesmrec avatar Nov 29 '16 10:11 jesmrec

Disable location services in device settings, and after that enable it again (photos taken in 3. are not uploaded, they should)

With that you are not forcing to detect a significant change in location, so photos should not upload

nasli avatar Nov 29 '16 11:11 nasli

@graysky2 i have noticed in the first message that you are using the app version 3.4.9. The latest version (3.5.1) includes the posibility to set background mode in the app itself, as you can see in the following screenshot:

screen shot 2016-11-29 at 14 18 35

You can try to upgrade the app, and then, check and tell us if the problem persists

jesmrec avatar Nov 29 '16 13:11 jesmrec

@jesmrec - Yes, my idevices autoupdated to 3.5.1; my screen looks like your screenshot. I will follow the 6 steps you showed above and report back. Thank you!

graysky2 avatar Nov 29 '16 14:11 graysky2

@graysky2 not only the steps in my message, also try your own scenario in order to know whether the initial problem is fixed or not.

jesmrec avatar Nov 29 '16 15:11 jesmrec