保持移动壳主动导航宿主上下文

HostBridge 主动导航同源页面时重新附加 native_app 宿主参数

补充移动壳导航测试覆盖平台版本和能力清单

同步 Expo/Tauri 宿主壳方案和团队决策记录
This commit is contained in:
2026-06-18 19:12:54 +08:00
parent ab27815810
commit b96be76a34
6 changed files with 37 additions and 5 deletions
+2 -1
View File
@@ -89,6 +89,7 @@ export default function ShellApp() {
useEffect(() => {
configureMobileHostBridgeNavigation({
allowedOrigin: allowedWebOrigin,
urlOptions,
openWebViewUrl(url) {
setWebUrl(url);
},
@@ -96,7 +97,7 @@ export default function ShellApp() {
});
return () => configureMobileHostBridgeNavigation(null);
}, [allowedWebOrigin, reloadCurrentWebView]);
}, [allowedWebOrigin, reloadCurrentWebView, urlOptions]);
useEffect(() => {
let disposed = false;