Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File content stale with Dropbox on Android #63

Open
pshangov opened this issue Apr 9, 2022 · 3 comments
Open

File content stale with Dropbox on Android #63

pshangov opened this issue Apr 9, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@pshangov
Copy link

pshangov commented Apr 9, 2022

I cannot find a way to update a file from Dropbox that has been updated since it was first opened. Saw #12 but still not clear how this is supposed to work.

@amake
Copy link
Owner

amake commented Apr 10, 2022

#12 is specific to iOS.

The last time I looked at Dropbox on Android it did not support the storage access framework (SAF), meaning you couldn't open files "from Orgro"; you could only go to Dropbox and then "open in Orgro". This is evidenced by e.g. this long-ignored request that Dropbox support SAF.

However now that I look again with the latest version of Dropbox (274.2.2) I see that they seem to have added support. In other words Dropbox now does appear as a source in the file picking intent:

android-1649555206

I have not seen this before, so I can't speak to the quality of Dropbox's support for SAF. As I understand it, Dropbox is responsible for making sure that files are up to date before handing them off to the requesting application. So if you are finding files to be stale then I think it's Dropbox's fault and there's really nothing I can do about it.

amake added a commit to amake/orgro-app-landing-page that referenced this issue Apr 10, 2022
In version 274.2.2 (obtained 2022-4-10) Dropbox now appears to support storage
access framework
amake/orgro#63 (comment)
@amake amake changed the title Dropbox sync on Android File content stale with Dropbox on Android Apr 10, 2022
@amake amake added the bug Something isn't working label Apr 10, 2022
@pshangov
Copy link
Author

I have been using https://github.com/orgzly/orgzly-android previously, which uses the same file picker. It too won't automatically detect changes to a file, but has a "Sync" button within the app itself to request a file to be refreshed.

@amake
Copy link
Owner

amake commented Apr 10, 2022

Orgzly embeds the Dropbox SDK, which gives it that capability. I don't use the Dropbox SDK because I already support the universal file access APIs on iOS and Android, and I don't think Dropbox merits such special treatment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants