Skip to content

Open external links outside the game WebView#22

Open
jim-daf wants to merge 1 commit into
alexbarry:mainfrom
jim-daf:route-external-links
Open

Open external links outside the game WebView#22
jim-daf wants to merge 1 commit into
alexbarry:mainfrom
jim-daf:route-external-links

Conversation

@jim-daf

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

Copy link
Copy Markdown

The WebView client serves the game from the local asset host but has no shouldOverrideUrlLoading, so an external link opens over the game and the user loses their place.

This adds shouldOverrideUrlLoading that keeps navigation on the local asset host inside the WebView as before and sends any other link out to the system so it opens in a browser. The launch is wrapped in a try/catch so a missing handler does not crash the app.

Closes #21

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.

External links open over the game in the WebView

1 participant