How do I force the update of my PWA made in Ionic 5?
My client can only see the new version after pressing ctrl + shift + r
Any tips?
I would like to force the update right on my login screen, it would already help
this.swUpdate.available.pipe(take(1)).subscribe(event => {
console.log('current version is', JSON.stringify(event.current)); console.log('available version is', JSON.stringify(event.available)); document.location.reload(); // this is the actual update action (a reload)
})
Do you have any git with the complete code?
No
you can read all of this on Angular