App exits unexpectedly when opening a file url
Describe the bug
app produces a android.os.FileUriExposedException and exits unexpectedly
To Reproduce
- create a link with uri "file:///hello"
- click the link in the links list then click "Open in a Browser"
- 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
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