4 ms·
This seems ok at first glance, and you can “kind of” get this feeling. And android and iOS you can bring up a generic file picker that will let the user select
by charrondev 2y ago
This seems ok at first glance, and you can “kind of” get this feeling. And android and iOS you can bring up a generic file picker that will let the user select any file or save a file to a user chosen location, and then the application gets access to an opaque file handle to read/write there. Platforms like Google Drive, Box, DropBox, OneDrive and local files are all options here.
Unfortunately as far as I remember there is no way to gain access to that location persistently. Your copy of the file through this mechanism is just a copy of that file, so I couldn’t say have 50 files in my app that I granted access to being in some file system location that syncs (like google drive) without having constantly be repicking that file location.
- scarface_74 2y agoOn iOS, an app has access to its own folder in at least iCloud Drive that can be accessed via the app or via the Files App.
- Gigachad 2y agoGoogle drive also has this functionality where apps can persistently access any files they created. There are a ton of options here that don’t involve unlimited access to all files.
- scarface_74 2y agoElI5: what is the problem then? Why would I want to give a random app access to all of my files on Google Drive?
- Gigachad 2y agoI think the main issue is it's just different to how it was before and Google won't be grandfathering in old apps. So you have to rebuild the integrations to use the new APIs which mostly let you do the same thing but it's still not a trivial drop in replacement.
- tredre3 2y agoI don't know about iCloud, but on Drive there is no way to see those files outside the app, it really limits what you can do as a user. Not to mention that it likely means that iA's own apps on other platforms can't access those files either. So much for the cloud.
- Gigachad 2y agoThere is. At least on iOS, your google drive files show up in the Files app as well as in the OS file picker. They are just as accessible as locally stored files. Any app which can open files can open files stored on Google Drive. What apps can't do is open files the app did not create, without the users input, without getting a security audit. Which seems perfectly fine to me.
- pjmlp 2y agoIt has via SAF, which is the right way on modern Android, but op apparently isn't keen in using it.