Skip to content

[FEATURE REQUEST] Open deeplinks in app, items already discovered (1st round) #3573

Closed

Description

@jesmrec

Private links generated by the server, must be opened inside the oC Android app.

This is a first approach with specific ACs:

  • App matching the host to be opened when private link is clicked. Not needed to brand this. Static.
  • Working in only one account mode
  • If the link points to a file, the file will be downloaded/displayed
  • If the link points to a folder, the folder content will be displayed
  • If a locking method is set up, the file/folder will be displayed after unlocking
  • If device does not have connection but the file is already downloaded, file is displayed
  • If device does not have connection but the folder is already discovered, content is displayed
  • If the file/folder is not reachable, app is opened and error is shown (toast/snackbar/...)
  • If no accounts are attached in the app, app is opened and error is shown (toast/snackbar/...) (feasible?)

Additional checks:

  • Lack of URL in the scheme (or *) are valid as well.

TASKS

  • Research (if needed)
  • Create branch feature/deep_links
  • Development tasks
    • Implement intent-filter and launch it throught adb's command.
    • App matching the host to be opened when private link is clicked. Not needed to brand this. Static.
    • If no accounts are attached in the app, app is opened and error is shown in toast
    • If the file/folder is not reachable, app is opened and error is shown (toast/snackbar/...)
    • If a locking method is set up, the file/folder will be displayed after unlocking
    • Working in only one account mode
    • If device does not have connection but the folder is already discovered, content is displayed
    • Lack of URL in the scheme (or *) are valid as well.
    • If the link points to a folder, the folder content will be displayed
    • If the link points to a file, the file will be downloaded/displayed
  • Code review and apply changes requested
  • Design test plan
  • QA
  • Merge branch feature/feature_name into master

PR

Activity

  1. changed the title [-][FEATURE REQUEST] Open deeplinks in app, items in root folder [/-] [+][FEATURE REQUEST] Open deeplinks in app, items in root folder (1st round)[/+] on Mar 3, 2022
  2. added this to the 2.21-current milestone on Mar 16, 2022
  3. self-assigned this
    on Mar 17, 2022
  4. changed the title [-][FEATURE REQUEST] Open deeplinks in app, items in root folder (1st round)[/-] [+][FEATURE REQUEST] Open deeplinks in app, items already discovered (1st round)[/+] on Mar 18, 2022
  5. fesave commented on Apr 4, 2022

    @fesave
    Contributor

    Hi @tbsbdr!!!! We need to add some new action buttons to the detail screen and here we post three proposals that we have designed. what do you think about it? New ideas or contributions are welcome!!!!

    cc @michaelstingl @abelgardep @jesmrec @theScrabi @davcres

    Options

    First Option Second Option Third Option
    option_one option_two option_three
  6. michaelstingl commented on Apr 4, 2022

    @michaelstingl
    Contributor

    Did you consider "Open in…" / "Open with…" instead of "Send" ? What do others do?

  7. fesave commented on Apr 4, 2022

    @fesave
    Contributor

    Did you consider "Open in…" / "Open with…" instead of "Send" ? What do others do?

    The download button would change the text to "Open in..." or "Open with..." once the file has been downloaded. What do you think?

  8. jesmrec commented on Apr 4, 2022

    @jesmrec
    MemberAuthor

    2nd one is awful for me

    The download button would change the text to "Open in..." or "Open with..." once the file has been downloaded. What do you think?

    i guess, depending on the openability of the file, right?

  9. tbsbdr commented on Apr 5, 2022

    @tbsbdr

    shot from the hip:

    • left aligned with icons
    • style: some "secondary" (= more decent) button style if something like this exists in the android app. (currently i see 3 "primary" actions which is quite loud in my perception. )

    Scribble:

    image

    known patterns / examples from other apps:

    image

  10. fesave commented on Apr 26, 2022

    @fesave
    Contributor

    Hi @dragotin , @michl19 👋🏻 The First feature we should discuss!!!

    As a result of last Monday's meeting, we have developed a solution to the problem of the deep link discussed that day.

    As we can see in the first video, if the user clicks on the thumbnail (not applicable to video files), the image is downloaded and previewed, and the following times (as it is already downloaded) it will only be previewed. But we think it is an easter egg for the user because there is nothing to tell him if he clicks on the thumbnail he will be able to see it in detail.

    deep_link_click_thumbnail.mp4

    The second video I attach is a solution to the previous problem, the button is not final and is subject to changes in design and text.

    deep_link_click_button.mp4

    We would like to know what you think about it and what solution you like the most. Thanks!

    cc @abelgardep @jesmrec @davcres

  11. dragotin commented on Apr 27, 2022

    @dragotin

    I think both solutions are pretty good, but I would prefer the first one. I think it is clear nowadays that clicking on a thumbnail opens the file.
    But ... @tbsbdr will have an opinion ;-)

  12. removed this from the 4.2 - Future milestone on Oct 6, 2023
  13. DeepDiver1975 commented on Jun 29, 2026

    @DeepDiver1975
    Contributor

    🤖 Automated issue triage by Claude Code review agent.

    This feature request — opening ownCloud deep links / private links directly in the app — has since been implemented. On current master the app handles incoming deep-link URLs end to end:

    • The manifest registers an android.intent.action.VIEW + BROWSABLE intent-filter for the deep-link scheme (<data android:scheme="@string/deep_link_uri_schemes" />), so deep links opened from outside the app launch it.
    • ManageDeepLinkUseCase parses the private-link path (the /f/<remoteId> form) and resolves the corresponding OCFile via getFileFromRemoteId.
    • FileDisplayActivity.handleDeepLink() / onDeepLinkManaged() route the URI through FileOperationsViewModel.handleDeepLink(...) and then open/preview the resolved item in the app, with handling for loading, no-access (prompts the user to switch account), and invalid-link formats. LoginActivity.handleDeepLink() covers the not-yet-authenticated case.

    Closing as implemented. If deep-link opening is still misbehaving on a current release, please reopen (or open a fresh issue) with the specific link and reproduction steps — thank you!

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions