-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[SPIKE] Deep Links 2.0 #4068
Comments
@michaelstingl one questions about expected behaviour: working in both oC10 / oCIS? in that case, same link format in both? In case of oCIS, we have to add another step: check which space/drive does contain the folder. |
oCIS focus. So yes, we'll have to deal with Spaces. But meta endpoint should provide this information: |
this will translate the file id into a path to reach the file. But, does the link itself look like in oC10? (i hope so):
i did not find this kind of links in oCIS web, only the public links with the |
oC10 link / fileid resolve
oCIS link / fileid resolve
|
@jesmrec @JuancaG05 please provide feedback/ideas if anything else needed from the backend |
I was researching the last week about this issue:
I continue researching about the next points. |
Tracked in: |
I continue checking the possibilities tu open an url with a custom scheme in Android. I create an app to open a page with a "oc" scheme inside a webview. If you use the WebView as is, when you click on the link, the WebView displays an error saying it doesn't recognize that scheme. Later, I added the code shown below to handle deep links and it opens the ownCloud app correctly. So, there is a possibility that if you try to open the deep link from a WebView within an app, it may not open. On the other hand, I have tested it on the 9 most commonly used Android browsers and it works fine there.
|
This sounds great 👍 |
I have been running tests, and I believe that with this, I can now consider the spike completed. I have obtained the file path through the request to "/remote.php/dav/meta/" with the file's ID. I have updated the containing folders of the file, and then I navigate to the file and display its details. In this video, it shows how it navigate to the file's details automatically using the deep link, then I view the image and manually navigate back to the initial folder: deeplinkFile.mp4In this other video, I demonstrate how to navigate automatically to a folder using the deep link and then manually navigate back to the initial folder: test.deeplink.folder.mp4 |
Everything done here. Let's archive this. |
Research about handling deep links
Research 1.0: https://github.com/owncloud/enterprise/issues/4970#issuecomment-1042967713
What's expected on Deep Links:
user clicks on a link in the device (no matter where: mail, web...):
What should be researched:
How brandable could the link be. Basic link is something like
https://demo.owncloud.com/f/7
. Prefix and URL to be brandable, so that we can open:mycompany://mycompany.thebest.com/index.php/f/13
with same effect. Scheme, host and preffix could have different values. (here there are some Android version regards, i guess). Desirable: use as defaultowncloud://
scheme.Check if this first iteration is still useful. In there, links to already discovered items are open. Branding options for host and preffix also there.
Which information to be sent to backend team to make this posible. Automatic verifications could be involved (check this)
Logic to develop, check feasibility and estimation (maybe the longest part)
Does make sense to split up in different parts as in the 1st try?:
If time allows, do a quick proof of concept of the easiest case
Any other idea ... always welcome.
The text was updated successfully, but these errors were encountered: