I hook in register-service-worker.js and want to display a Notification on update. Whats the best way to display a message to the user by notify?
// register-service-worker.js
...
updated (registration) {
// how to trigger $q.notify('You have an update') on my App?
},
Can i get access to $q from within the updated method. Or should i dispatch an event e.g. on the windows object that i have to capture in some component?