Skip to content

Open non-web links with an external app#3

Open
jim-daf wants to merge 1 commit into
pro1mantis:masterfrom
jim-daf:route-external-links
Open

Open non-web links with an external app#3
jim-daf wants to merge 1 commit into
pro1mantis:masterfrom
jim-daf:route-external-links

Conversation

@jim-daf

@jim-daf jim-daf commented Jun 5, 2026

Copy link
Copy Markdown

Right now the WebView client has no shouldOverrideUrlLoading, so links like mailto: and tel: fail inside the WebView because it cannot handle those schemes.

This adds shouldOverrideUrlLoading to the client. It keeps http and https pages in the WebView exactly as before and routes other schemes out to the system so the right app handles them. The launch is wrapped in a try/catch so a missing handler does not crash the app.

Closes #2

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Non web links like mailto and tel are not handled

1 participant