Reputation: 4054
The chrome browser pops up a balloon with data as shown below
But Mozilla says the PushEvent.data is still experimental
This is an experimental technology Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes.
Note: This isn't yet supported on any browser.
Now how facebook detect 5 notifications?, Are they re-establishing a http connection to detect it? or is it really coming with the PushEvent.data
Upvotes: 2
Views: 406
Reputation: 16597
It is not coming from PushEvent.data, that is not yet fully implemented in Chrome.
The current process is that when the push event is received by your Service Worker you need to make a new fetch
request from inside your pushnotification
JS handler to your server. This means that you have to handle all the logic yourself but you can do a number of things:
Upvotes: 2