nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.2k stars 1.75k forks source link

Will only sync offline file when navigating to folder when no internet connection after edit #1065

Open rexxmagnus opened 7 years ago

rexxmagnus commented 7 years ago

Actual behaviour

Offline file will not synchronise until you navigate to the folder in the nextcloud app containing that file with the network connected (even if the accounts > nextcloud > files is set to on)

Expected behaviour

Updated files should synchronise as soon as network connection is established, rather than requiring navigation to the folder.

Steps to reproduce

  1. Mark a file as offline with wifi enabled
  2. turn off wifi
  3. edit file and save it
  4. close nextcloud client
  5. enable wifi
  6. wait - sync will not occur
  7. navigate to folder containing offline file and it will upload

Environment data

Android version: 6.0.1

Device model: Blackberry priv

Stock or customized system: Stock

Nextcloud app version: 1.4.3

Nextcloud server version: 12.0.0

(No apparent log errors)

rexxmagnus commented 7 years ago

Note, this may be a duplicate of #757

tobiasKaminsky commented 7 years ago

I reproduced this. If there is no internet connection right after saving the file, we currently do not retry uploading it if connection is back again. The full account sync is currently done once every 3 hours to avoid too many automatic syncs, so this will then sync your changed file.

So there are two solutions for me

As we are planning to enhance the whole available offline system to a "real" 2 way sync solution, we will then take this into account.

rexxmagnus commented 7 years ago

Sounds good. I look forward to it, as I'll be able to drop dropbox completely after that!