Skip to content

fix(android): Do not show error in WebView when web page has a resource that is unresolvable#105

Merged
OS-pedrogustavobilro merged 2 commits intomainfrom
fix/RMET-4937
Jan 16, 2026
Merged

fix(android): Do not show error in WebView when web page has a resource that is unresolvable#105
OS-pedrogustavobilro merged 2 commits intomainfrom
fix/RMET-4937

Conversation

@OS-pedrogustavobilro
Copy link
Contributor

Description

Fixes an error on Android via native library update - More info in OutSystems/OSInAppBrowserLib-Android#53

Testing

To have a webpage that has a resource located in an unresolvable host, I created this simple index.html file

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ERR_NAME_NOT_RESOLVED Test</title>
</head>
<body>
    <h1>WebView Subresource Error Test</h1>
    <!-- This domain will NEVER resolve (RFC 2606) -->
    <img
        src="http://does-not-exist.example.invalid/image.png"
        alt="Broken image"
        width="300"
    />
</body>
</html>

Then run a server on the directory that contains said html file e.g. with python in terminal python -m http.server 8080

Then call openInWebView with http:<your-machine-ip>:8080. Your device needs to be on the same network + you will need to allow http connections, for that refer to Android docs)

@OS-pedrogustavobilro OS-pedrogustavobilro requested a review from a team January 15, 2026 14:22
@OS-pedrogustavobilro OS-pedrogustavobilro self-assigned this Jan 15, 2026
@OS-pedrogustavobilro OS-pedrogustavobilro merged commit 0d407b6 into main Jan 16, 2026
4 checks passed
@OS-pedrogustavobilro OS-pedrogustavobilro deleted the fix/RMET-4937 branch January 16, 2026 09:29
capacitor-bot pushed a commit that referenced this pull request Jan 16, 2026
## [3.0.1](v3.0.0...v3.0.1) (2026-01-16)

### Bug Fixes

* **android:** Do not show error in WebView when web page has a resource that is unresolvable ([#105](#105)) ([0d407b6](0d407b6))
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.

2 participants