Wasm Application Close #9667
-
|
So a Wasm app sadly doesn't get a CloseRequested call when a user closes their browser tab. So instead I want to add a close button to my app to allow me to tidy up and then cleanly close things and then finally close the Uno app, ideally causing the browser tab to then close too. However I can't seem to find a function to call to cause the close - is there one? Windows.ApplicationModel.Core.CoreApplication.Exit(); isn't supported ("is not implemented in Uno") |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
You can't force user to close the tab or browser through js or wasm (security). You can show some page instead https://stackoverflow.com/questions/55603206/how-to-exit-from-a-webassembly-process-on-the-front-end |
Beta Was this translation helpful? Give feedback.
-
|
See #9596 for WebAssembly exit support. The |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for the replies, makes sense and I'll give that event a try thanks |
Beta Was this translation helpful? Give feedback.
See #9596 for WebAssembly exit support.
The
CloseRequestedevent is not implemented, but you can use Suspending event to some extents.