ios icon indicating copy to clipboard operation
ios copied to clipboard

Files app integration with multiple accounts

Open canthar opened this issue 3 years ago • 2 comments

Right now, with Files app integration enabled, I can browse in the Files app the recently opened account. This integration allows not only browsing in the Files app, but those files are available for other apps to use (in my case it's Keepassium).

However, I have multiple accounts and sometimes I need to switch them. After such a switch, the previously available file is no longer available for other apps to use. It means, I need to remember to switch the account back for everything to work correctly. If I had a use case, so that other apps need files from multiple accounts, it'd be even impossible.

I have an idea - maybe each account could be treated as a separate directory in the Files app integration. What do you think?

canthar avatar May 06 '22 20:05 canthar

That’s a good idea. My problem is in addition. Sometimes it doesn’t switch or I’m in a subdirectory. Nextcloud backend thinks I’m trying to login with the wrong credentials and bans my IP.

BJKle avatar Apr 15 '23 01:04 BJKle

I have this issue as well. I have two accounts in the Nextcloud app and switch between them regularly. Every time I switch the account, the files show by the FileProvider in the Files app changes to that account. This confuses "layered" apps, i.e., apps that rely on the files presented by the FileProvider, because to the layered app it appears that the data stored in Nextcloud has been removed.

However, iOS offers a better solution to this: a FileProviderExtension can have a domain, basically allowing a single app to appear multiple times in the Files app, once for each account within the app. I saw that @marinofaggiana has been adding some code around the FileProvider domains, but I have a hard time figuring out how far that has come. Is there anything we can help testing already?

skyfmmf avatar Oct 16 '24 22:10 skyfmmf