adam bien's blog

Testing Service Workers, TypeError: undefined is not an object (evaluating 'navigator.serviceWorker.register') and SSL with Quarkus 📎

Service Workers can be only developed on localhost or a via a SSL connection. On iPhone an access to ServiceWorker over http causes:


TypeError: undefined is not an object (evaluating 'navigator.serviceWorker.register')    
    

In this screencast I'm configuring quarkus to act as a plain web server with a self-signed SSL-certificate for developing and testing Service Workers on mobile devices (iPhone):