I want to listen to incoming notifications on the chrome browser for sites like google, facebook, whatsapp etc.
I saw that the hack mentioned here which no longer works because webkitNotifications.createNotification
is deprecated. Some of these sites use service workers, so I wonder if I can use webAPIs like ServiceWorkerRegistration.getNotifications()
, PushManager
, ServiceWorkerGlobalScope
or even the Notification
API? I've been reading around and cannot find anything to do this. I don't mind a hack as well. Can anything be done using selenium? Is it possible at all? If not, I'll not waste more time on it.
Cheers!
Note: I'm looking for a solution where I can listen to notifications on other websites, not mine.