-
fix(tauri): use raw __TAURI_INTERNALS__ invoke, fix dynamic import on Android
released this
2026-06-15 21:34:13 +00:00 | 28 commits to main since this releaseRoot cause: dynamic import('@tauri-apps/plugin-opener') silently fails on
Android Tauri WebView because the module resolution path for @tauri-apps/api
(plugin dependency) differs from npm expectations in the bundled context.Rewrote tauri.ts to use window.TAURI_INTERNALS.invoke() directly:
- openUrl() → invoke('plugin:opener|open_url', {url})
- setupDeepLinkHandler() → invoke('plugin:deep-link|get_current')
- Warm-start listener still uses import('@tauri-apps/api/event') for
deep-link://new-url events (bundled as separate chunk by Vite) - Added @tauri-apps/api as direct dependency
Also kept withGlobalTauri: true (needed for TAURI_INTERNALS injection)
but reverted APK frontendDist back to bundled React app (../web/dist)
since redirect-to-live-web approach was unreliable.Co-Authored-By: Claude noreply@anthropic.com
Downloads