Tag

Native-JS Communication

1 views collected around this technical thread.

Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Feb 23, 2021 · Mobile Development

Mastering WebView & JSBridge: Seamless Native‑Web Communication on Android & iOS

This article explains the fundamentals of WebView as a native container for H5, introduces the JSBridge concept for two‑way JavaScript‑Native messaging, and provides detailed implementation patterns and code samples for Android (JavascriptInterface, URL‑Scheme, WebChromeClient) and iOS (WKWebView, user scripts, message handlers).

AndroidJSBridgeNative-JS Communication
0 likes · 11 min read
Mastering WebView & JSBridge: Seamless Native‑Web Communication on Android & iOS
Meitu Technology
Meitu Technology
Oct 17, 2018 · Mobile Development

Hybrid App Architecture and JSBridge Implementation Overview

The article explains hybrid app architecture, comparing WebView‑based, native‑UI, and mini‑program approaches, and details a custom‑scheme JSBridge that enables bidirectional communication between JavaScript and native code, its injection, callback handling, SDK packaging, and the trade‑offs of online versus embedded H5 integration.

Hybrid AppJSBridgeNative-JS Communication
0 likes · 15 min read
Hybrid App Architecture and JSBridge Implementation Overview