Matsi Katzi:
Syam Pillai:
UI.getCurrent().getPage().executeJS("window.close();");
It should work when you are in Production mode.
No, that didn’t work. I let the program print something out when the command ran…
the windows wasn’t closed like this. I saw the output “Vaadin is running in production mode.”.Maybe I should provide pieces of my version information?
- Vaadin 14.3.0
- Spring Boot 2.2.0-RELEASE
- openJDK (Coretto) 11
I am using 16.0.1. It doesn’t close the window when used inside the browser. However, if I install it as a PWA app on the desktop or mobile, then it closes the app properly.