You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're unable to listen to receive emit events in built apps from a Webview beyond 2.0.0-beta.4. Specifically, we've got a working project with the following dependencies in the .lock:
tauri: 2.0.0-beta.4
"tauri-build": 2.0.-beta.3
A change that runs cargo update, and does the relevant capabilities.json change (moving local & remote into context) makes this no longer work on the following version:
tauri: 2.0.0-beta.8
"tauri-build": 2.0.-beta.6
The event is being sent to Any and listened globally via JS, via emit and listen. This is all re: macOS.
I have faced this issue today as well and solved it using import { listen } from '@tauri-apps/api/event';.
But indeed, getCurrent().listen(...) seems to not be working.
Interesting - we've always used import { listen, UnlistenFn } from '@tauri-apps/api/event' + await listen()
So it looks like what worked for you somehow still broke for us 🤔
Describe the bug
We're unable to listen to receive
emit
events in built apps from a Webview beyond 2.0.0-beta.4. Specifically, we've got a working project with the following dependencies in the.lock
:tauri:
2.0.0-beta.4
"tauri-build":
2.0.-beta.3
A change that runs
cargo update
, and does the relevantcapabilities.json
change (movinglocal
&remote
intocontext
) makes this no longer work on the following version:tauri:
2.0.0-beta.8
"tauri-build":
2.0.-beta.6
The event is being sent to
Any
and listened globally via JS, viaemit
andlisten
. This is all re: macOS.Reproduction
No response
Expected behavior
No response
Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: