In my blog this updated(registration) method is called on every page reload and it show in console that 'New content is available; please refresh.'
updated(registration)
Is this usual for PWA or I missed something ?
updated(registration) { console.log('New content is available; please refresh.') document.dispatchEvent( new CustomEvent('swUpdated', { detail: registration }) ) }
dev.adapttive.com
Hey Milind, that doesn't sound right to me. Did you follow the above example exactly?
Yes, I found the issue.
I had add the onesignal sdk for notifications, which has a service worker causing conflit with default website service worker. 🙂
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
In my blog this
updated(registration)
method is called on every page reload and it show in console that 'New content is available; please refresh.'Is this usual for PWA or I missed something ?
dev.adapttive.com
Hey Milind, that doesn't sound right to me. Did you follow the above example exactly?
Yes, I found the issue.
I had add the onesignal sdk for notifications, which has a service worker causing conflit with default website service worker. 🙂