LinkHub icon indicating copy to clipboard operation
LinkHub copied to clipboard

App exits unexpectedly when opening a file url

Open zyfy29 opened this issue 5 months ago • 1 comments

Describe the bug app produces a android.os.FileUriExposedException and exits unexpectedly

To Reproduce

  1. create a link with uri "file:///hello"
  2. click the link in the links list then click "Open in a Browser"
  3. bug appears

Expected behavior show a snack bar to notice that url can't be opened

Screenshots none

Smartphone (please complete the following information):

  • Device: [tablet]
  • OS: [Android 10]
  • Version [1.6.2]

Additional context it seems that since android api 24, opening file uris by intent is restricted may be fixed with #72 together

zyfy29 avatar Jul 14 '25 07:07 zyfy29

Hello @zyfy29,

Thank you for reporting this issue. It should be handled in a way that opens files or reports a good error message.

it seems that since android api 24, opening file uris by intent is restricted

Thats correct, and the app should handle this exception

The other issue will handle deep links in general but we need to handle file:// too

Thanks

AmrDeveloper avatar Jul 15 '25 10:07 AmrDeveloper