example how to use notifications from webapp