Angular 5 app doesn't register service worker
It appears that the problem is caused by angularFire2
. I had the same issue but was able to fix it by putting the following code in my main.ts
file.
if ('serviceWorker' in navigator && environment.production) {
navigator.serviceWorker.register('/ngsw-worker.js');
}