User
You can do it with SwUpdate service like this:
@Injectable()
export class UpdateService {
constructor(swUpdate: SwUpdate) {
swUpdate.available.subscribe(event => {
// notify user that update is available
})
}
}
User
I have developed a PWA app in angular6 with @angular/pwa and it is working absolutely great. I am also trying to notify the user to update the PWA app when user opens the app if there is any update in the app. I have gone through different articles and blogs, and find this article, but it is not for angular6. I am unable to add any eventListeners as service workers are automatically created. Please help me in resolving this issue. Thank you!
General Tech Technology & Software
1 Replies