ios
ios copied to clipboard
Open links in app
Expected behaviour
If I click on a shared link it should open the NC App if it is installed on the device.
Actual behaviour
It open the link in the browser.
Steps to reproduce
Click on a shared link.
iOS version
12.1.1
App version
2.22.7.4
Server configuration
Operating system: Arch Web server: Apache Database: MySQL PHP version: 7 Nextcloud version: (see Nextcloud admin page) 14.0.3
It's working for android now. Maybe it can help how the solve it: https://github.com/nextcloud/android/pull/5345
URL scheme "nextcloud://directlink/f/{fileID}" opens nextcloud app on iOS devices. But it doesn't use the deep link to get directly to the file or directory. Or do I do I miss any information how to use the url scheme correctly?
I also have this (or a similar) problem: Mails sent from the activity app include links of the form https://{domain}/index.php/f/{id} iOS tries to open these links in browser and also asks the user to authenticate again. Can I somehow change the form of the link, that it opens in the app (for iOS and for android)? Or does this need to be fixed by the app developers?
Edit: Wrong form of link due to a bad configuration
I am not a developer, but found this (https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html) Is this an option to open all links of the form index.php/f/ with the app similar to the android approach? @marinofaggiana
Hi @marinofaggiana how hard to do is this issue? It would be so awesome to have. We send a lot internal links and on iOS it always opens the webbrowser instead of the app when the user clicks on this link. Thank you!
It would be great if there would be the function.
A very common case for me: I have a link on my mobile (mail, calendar, task, ...) which points to my Nextcloud (to a PDF, image, ... any file). Now I just have bad mobile internet (like everywhere in Germany) or I am even offline. In my app I have this file stored offline, but I have to navigate there in a complicated way manually.
URL scheme "nextcloud://directlink/f/{fileID}" opens nextcloud app on iOS devices. But it doesn't use the deep link to get directly to the file or directory. Or do I do I miss any information how to use the url scheme correctly?
I'm implementing deep links into my own app right now and found something interesting in this app's code. The following URL will deep link into the Nextcloud iOS app: nextcloud://open-file?user=<USERNAME>&link=<NC-INSTANCE>&path=<PATH>, e.g. nextcloud://open-file?user=johannes.schliephake&link=https://cloud.example.com&path=Folder/File.pdf
I know it's not a replacement for universal links, but it's something.
Thanks @johannes-schliephake, this also helped me! I currently use this for a shared text file, which I use with a few people as simple todo list. At least these links already navigate through the folder structure and show the linked item. Unfortunately the app then doesn't open it. It would be nice to also have an option to actually open/view the file. For text files edit would also make sense.
iOS does support the already mentioned UniversalLinks. This allows unmodified URLs to be handled by an app (when installed) over the browser. The tricky part would be to catch calls to custom domains, so the domain patterns to be registered as UniversalLinks need to be dynamic (based on manual configuration or ideally the URL of the connected Nextcloud instance).
Addressing this issue would cause a positive step change in adoption in my organization (and maybe others.) My users often want to text each other links to Nextcloud content. But they gripe when their mobile browser demands they login, or has some other inferior aspect - the app is such a superior experience. Fixing this in iOS would have my users drawing each other into Nextcloud all the time!
Thanks @rvjr. You said "I currently use this for a shared text file, which I use with a few people as simple todo list." -- but do you actually have to send each recipient their own link with user=something changed in each, so each person's phone will open their account. Or is there a way to wildcard user= so that the nextcloud:// link can be generic?
An update to date issue has been made here with plans to implement this: https://github.com/nextcloud/ios/issues/2479