Using this extension alongside PWA project with register-service-worker.js and using the method updated to reload the page after new release detection, the browser is reloading multiple times and can't find any release.
Pwa Options:
workboxPluginMode: 'GenerateSW',
workboxOptions: { skipWaiting: true, clientsClaim: true }, // only for GenerateSW
Code used in register-service-worker.js
updated (/* registration */) {
// console.log(registration)
Notify.create({
message:
'Uma nova versão desta aplicação foi detectada. A aplicação será reiniciada para que a atualização tenha efeito.',
icon: 'update',
color: 'grey-8',
textColor: 'white',
timeout: 5000,
onDismiss: () => {
window.location.reload()
}
})
},
Using this extension alongside PWA project with register-service-worker.js and using the method updated to reload the page after new release detection, the browser is reloading multiple times and can't find any release.
Pwa Options:
Code used in register-service-worker.js