Commit c16efdb
committed
fix: resolve Windows build error and macOS JavaScript execution
WINDOWS FIX:
- Fixed compilation error in UwbWebView.cs line 143
- UniTask.WhenAny returns a tuple (int winIndex, T result), not just int
- Corrected to use tuple deconstruction: var (winIndex, _) = await UniTask.WhenAny(...)
MACOS FIX:
- WKWebView requires being in view hierarchy to execute JavaScript
- Set webView.hidden = NO and positioned offscreen (-10000, -10000)
- Added WebView to main window's content view
- This allows JavaScript (game-bridge) to execute and send callbacks
Both fixes address the 'App stuck in Initialisation' issue by ensuring
JavaScript can execute and callbacks can reach Unity on both platforms.1 parent 4f2c6e8 commit c16efdb
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
0 commit comments