#HTML Links No Longer Working in IOS

11 messages · Page 1 of 1 (latest)

storm flare
#

I'm running an iOS app using tauri v2, and after an update tauri libs my html links no longer work. My app catches and logs unhandledRejections, thanks to that I can see I'm getting the following error within the simulator:
Scoped Shell IO error: no such file or directory (os error 2). On a deployed device, the error is instead Scoped Shell IO error: Operation not permitted (os error 1). It used to work without any issue - in fact our production app still has those links working with no changes to the html code itself

[✔] Environment
- OS: Mac OS 15.5.0 arm64 (X64)
✔ Xcode Command Line Tools: installed
✔ rustc: 1.86.0 (05f9846f8 2025-03-31)
✔ cargo: 1.86.0 (adf9b6ad1 2025-02-28)
✔ rustup: 1.27.1 (2024-04-24)
✔ Rust toolchain: 1.86-aarch64-apple-darwin (environment override by RUSTUP_TOOLCHAIN)
- node: 20.18.2
- npm: 10.8.2
- deno: deno 2.2.0

[-] Packages
- tauri 🦀: 2.5.1
- tauri-build 🦀: 2.2.0
- wry 🦀: 0.51.2
- tao 🦀: 0.33.0
- tauri-cli 🦀: 2.5.0
- @tauri-apps/api : 2.5.0
- @tauri-apps/cli : 2.5.0

[-] Plugins
- tauri-plugin-store 🦀: 2.2.0
- @tauri-apps/plugin-store : 2.2.0
- tauri-plugin-dialog 🦀: 2.2.2
- @tauri-apps/plugin-dialog : 2.2.1 (outdated, latest: 2.2.2)
- tauri-plugin-http 🦀: 2.4.4
- @tauri-apps/plugin-http : 2.4.3 (outdated, latest: 2.4.4)
- tauri-plugin-shell 🦀: 2.2.1
- @tauri-apps/plugin-shell : 2.2.1
- tauri-plugin-fs 🦀: 2.3.0
- @tauri-apps/plugin-fs : not installed!

[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../build
- devUrl: http://localhost:1420/
- framework: Svelte
- bundler: Vite

storm flare
storm flare
#

Alright, I wasn't able to find a release note mentioning it, but the issue stemmed from the apparent removal of the open url feature from the shell plugin, having migrated to the opener plugin instead, resulting in a breaking change. Adding the opener plugin and
"opener:default",
"opener:allow-open-url", in capabilities solved the issue.

#

It might be lacking some documentation ? or I may have just missed it, in which case I'm sorry, but mentioning that Tauri relies on opener for HTML links maybe ? (if that is even the case)

gaunt marsh
#

the shell plugin can still open urls. this was not removed. the opener plugin is just better at it.

#

we did however fixed a security issue in [email protected] that disabled the default validation essentially allowing all urls.

#

if this results in all urls being blocked even if you configured the scope accordingly (or use a link that's covered by the default) then this is a bug that we maybe can/should fix (you should use the opener plugin either way btw)

storm flare
#

ah, interesting. One of the url was shortcuts:// so i guess it makes sense for it not to work, the other however was an https:// link to our website, I believe that should be covered by that the default scope ?

#

I'm not on my mac right now but I'll take a look as soon as I can

gaunt marsh
#

yes, the https link is supposed to work

errant panther
# gaunt marsh yes, the https link is supposed to work

Yeah, basically no link with target="_blank" works on any mobile platform, it's a very critical problem. I use only opener, but it still wants to use the shell open for that, which doesn't even have settable allow for urls that you can set in permissions.