AbortError: Failed to register a ServiceWorker: ServiceWorker cannot be started
|Added at||2017-01-02 18:01|
I am trying to test push notifications functionality in Chrome. I cloned the sample Chrome push notification web-app provided by Google here: https://github.com/GoogleChrome/samples/tree/gh-pages/push-messaging-and-notifications
The code is working properly when I hosted the web app using
Now I am getting
The service-worker.js is in the same directory as the html file as well as the js file from where i am calling this method.
There's not much documentation on service workers. Also the error is too vague to figure out anything. Please help me in figuring out the root cause of this error.