Closed juliusknorr closed 4 years ago
Great idea. But yeah, it would probably require server side changes to produce filterable URLs.
The only other alternative I can think of would be to subscribe to all http-links and prompt the user to open the link with the app but that's not a very elegant solution.
Like @juliushaertl and @ardevd stated, yes, we would need a custom URL generated by the server for which we would register as a VIEW since registering on any URL would be bad UX since we can't handle most of them.
Original discussion about this is #1069
Is there a way to detect in the browser if there is protocol handler for nc:// ? because if so we could do
This one is working for me: https://stackoverflow.com/a/32358608
We then could use nc://directlink/$url as @juliushaertl suggested. Of course the internal handling does not exist yet: We need to get info about location of passed file, then download all metadata from root to this file + parent folder. But it should be feasible.
@juliushaertl links which you receive via email will still be in http://cloud/f format, so those will not work. An automated email of course could show both.
I also had an approach like @rullzer described in mind, so users can continue to share the https://cloud/f links but when they are opened on android and the app is installed it is possible to open the file in the app.
I'll have a look if I can get the detection on the server side work somehow.
As far as I know there is no way to get an info if a specific app is installed, which otherwise would be a big privacy issue as a bad website could try to detect all installed apps and use them for marketing, …
As far as I know there is no way to get an info if a specific app is installed
Afaik like @tobiasKaminsky mentioned this isn't possible for the bowsers
We then could use nc://directlink/$url as @juliushaertl suggested. Of course the internal handling does not exist yet: We need to get info about location of passed file, then download all metadata from root to this file + parent folder. But it should be feasible.
So this is is done by me for #3933 and thus can also be used, with a minor change for this.
Any update here? :)
No.
@tobiasKaminsky https://github.com/nextcloud/android/issues/1069 could be closed, too?
Actual behaviour
Expected behaviour
I'm not sure if this is somehow possible on android, since Nextcloud instances are hosted on custom domains, but maybe someone from @nextcloud/android has an idea. Maybe we could extend the web ui with some button like "Show in the client" that is shown on mobile and calls some custom url like:
nc://directlink/https://cloud.example.com/f/12345