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
registration = (ServiceWorkerRegistration) object;
in setupRegistration method of ServiceWorkerManager throws a ClassCastException when using Safari on MacOS X.
I think this might be an internal problem with Safari and GWT.
Made a workaround using a native method casting the object.
public native ServiceWorkerRegistration castRegistration(JavaScriptObject o) /*-{
return o;
}-*/;
protected void setupRegistration() {
if (isServiceWorkerSupported()) {
Navigator.serviceWorker.register(getResource()).then(object -> {
logger.info("Service worker has been successfully registered");
registration = castRegistration((JavaScriptObject) object);
This works on all systems and browsers I've tested so far.
The text was updated successfully, but these errors were encountered:
registration = (ServiceWorkerRegistration) object;
in setupRegistration method of ServiceWorkerManager throws a ClassCastException when using Safari on MacOS X.
I think this might be an internal problem with Safari and GWT.
Made a workaround using a native method casting the object.
This works on all systems and browsers I've tested so far.
The text was updated successfully, but these errors were encountered: