ios-legacy
ios-legacy copied to clipboard
iOS owncloud app does not background upload with cellular data disabled
Steps to reproduce
- Settings>ownCloud>Location=Always
- Settings>ownCloud>Photos=On
- Settings>ownCloud>Background App Refresh=On
- Settings>ownCloud>Cellular Data=Off
- 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
Related to https://github.com/owncloud/ios/issues/352?
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!
I will try it with 3.5.0 and report back here in a few days.
Version 3.5.1 is still broken with respect to this issue.
@nasli Can you repoen?
@graysky2 could you provide us more information, iPhone model and version? Thanks cc: @jesmrec
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
@nasli - iPhone5s and iPhone6s on v10.0.2 and v10.1.1 (both tested on both iOS version).
@jesmrec is a regression in 3.5.1? and still happens in current master branch?
it happens also in master and in 3.5.0, so it is not a regression from that version.
@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 - Yes, I will try and report back.
@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 The steps would be the following ones, do you agree?
- 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.
- Change to another app (put ownCloud in background).
- After 3 minutes, take some photos (they are not uploaded)
- Enable wifi connection in device
- Disable location services in device settings, and after that enable it again (photos taken in 3. are not uploaded, they should)
- Open the app (photos are uploaded)
CC @nasli
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
@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:

You can try to upgrade the app, and then, check and tell us if the problem persists
@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 not only the steps in my message, also try your own scenario in order to know whether the initial problem is fixed or not.