I am developing a web application using JSF 2.3.9 (Mojarra) and OmniFaces 3.4 in a Tomcat 9 container. On a page I am displaying informations from a org.omnifaces.cdi.ViewScoped
bean. This bean is allocating resources in @PostConstruct
and should release them as soon as the user is navigating to an other page by invoking the @PreDestroy
method.
This works fine on browsers like Safari on OsX, Firefox, Chrome. But when the web application is launched from Safari on iOS, the @PreDestroy
method is not called e.g. when the page is left.
It seems to me that this happens because the unload() event handler ist not supported in Safari on iOS and as I can see the script unload.js
from Omnifaces binds to this event.
Forgot to mention - it is the latest iOS version 13.2.3...
Has anybody an idea how to fix this?