This isn’t necessarily notifications. You can use Web component to invoke serverside (e.g. php) script and get latest notifications that hook to a backend database (e.g MySQL). You’ll need to use TinyDB so that you can store information so that user doesn’t get duplicate messages.
It gets a little involved. To benefit everyone, I’m thinking of putting together a sample app/tutorial together.