You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an ownCloud user, I want to sync files to my mobile devices automatically so that I can have always the latest files available on my mobile platform
Acceptance Criteria:
Current “not granted offline” continues as currently implemented in iOS (tap on a file downloads, tap again downloads latest, changes are uploaded to server if found)
Current “not granted offline” in Android needs to be updated to meet user expectations:
If a directory on mobile device is requested to be kept in sync with the server would that require regular polling and scanning of local mobile filesystem? What about the battery usage of mobile devices in this case? Is there an OS-provided mechanism to do it efficiently?
And they are very good questions. Our current implementations of files being kept in sync extends FileObserver in the class FolderObserver. If I recall correctly, this is able to detect changes in all the subtree pending of the observed folder, so the total number of FileObserver shouldn't be a big deal, in theory.
There are other improvements we could address to control battery consumption (such as separating observation to detect a change from uploading that change) , and other problems / uncertainties that may affect the observers (they need to be kept watching indefinitely; the system might not like that). We'll talk about all this in more detail soon.
Activity
davivel commentedon May 23, 2016
Edited first comment to clarify pending changes
jeremy447 commentedon May 24, 2016
Great to see improvement on Sync Capabilities !
Can this #1437 be improve too please ?
Thanks !
moscicki commentedon May 25, 2016
If a directory on mobile device is requested to be kept in sync with the server would that require regular polling and scanning of local mobile filesystem? What about the battery usage of mobile devices in this case? Is there an OS-provided mechanism to do it efficiently?
helmo commentedon May 25, 2016
@moscicki Linux has inotify for that, which android uses as FileObserver
moscicki commentedon May 25, 2016
@helmo: what are the practical limits on Android for inotify? How many filesystem objects can one process watch?
helmo commentedon May 25, 2016
@moscicki I'm not sure
davivel commentedon May 25, 2016
@moscicki , @helmo, these questions would be better placed in #1136 and / or #6.
And they are very good questions. Our current implementations of files being kept in sync extends FileObserver in the class FolderObserver. If I recall correctly, this is able to detect changes in all the subtree pending of the observed folder, so the total number of FileObserver shouldn't be a big deal, in theory.
There are other improvements we could address to control battery consumption (such as separating observation to detect a change from uploading that change) , and other problems / uncertainties that may affect the observers (they need to be kept watching indefinitely; the system might not like that). We'll talk about all this in more detail soon.
davivel commentedon May 25, 2016
@moscicki , @Paviluf , @helmo , if you really want this get attention, take the chance of voting for it in owncloud/core#24684 (comment) . Let us see your hearts there!
davivel commentedon Aug 3, 2016
Marked checkbox for #333, already merged, to be released soon: #1750
davivel commentedon Jan 16, 2017
Marked checkboxes for #1136 and owncloud/ios-legacy#463 , both of them released.
davivel commentedon Apr 11, 2017
Sorry, but we need to drop issues from milestone 2.4.0 to get it out next to OC 10 server.
This time we'll move topics to
backloginstead of directly to next release, so that we can schedule 2.5.0 properly.In this case, since there is a single independent issue pending to finish, I will label that and close this one.