Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cast exception in pwa registration #3

Open
SandraK82 opened this issue Jan 26, 2020 · 1 comment
Open

Cast exception in pwa registration #3

SandraK82 opened this issue Jan 26, 2020 · 1 comment

Comments

@SandraK82
Copy link

Unhandled Promise Rejection: Error: java.lang.ClassCastException in
protected void setupRegistration() {
if (isServiceWorkerSupported()) {
Navigator.serviceWorker.register(getResource(), getOption()).then(object -> {
logger.info("Service worker has been successfully registered");
registration = (ServiceWorkerRegistration) object;

(last line, File is ServiceWorkerManager)

Client is Safari 13.04, initial App runs in Superdevmode
not happening in 79.0.3945.117 from same superdevmode run

in Safari Debugger it is a:
object_0_0_g$: ServiceWorkerRegistration {installing: null, waiting: null, active: ServiceWorker, scope: "http://127.0.0.1:8888/", updateViaCache: "imports", …}

@SandraK82 SandraK82 changed the title Cast exception in paw registration Cast exception in pwa registration Jan 27, 2020
@SandraK82
Copy link
Author

More clarifications:
I tested with current Safari on macOS Catalina and iOS. Both show class cast Exception.
Current Chrome works well on MacOS but not on iOS (I guess because of WebKit)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant