ONE ARTIFACT, TWO NATIVE APPS
Take one self-contained artifact — HTML, JavaScript, and a WebAssembly core, the kind of thing that already runs in a browser — and ship it as a native app on both phones. That's the pipeline I built this week.
Android wraps it in a WebView, iOS in a WKWebView. The hard part isn't the wrapper — it's the three landmines that only show up when you stop running in a browser.
// THE THREE LANDMINES
fetch() refuses local files on both platforms. The WASM core rejects a non-HTTP response. The GPU renderer silently drops frames where a plain canvas doesn't. Each cost a fix: a scheme handler, an inlined byte array, a forced renderer. Each taught the same lesson — the browser is one sandbox, and a native shell is a different one.
The point isn't the app. It's the pattern: one build artifact, two native targets, no rewrite.
Stay sharp. — W1d0wm4k3r