I'm reading Mozilla's Service Worker Cookbook and I found that service workers implement event listener for the "push" event in two different ways:
Why would I need to implement push notifications using the second options? Are there some browsers that don't support payload inside the push notifications?
2.1m questions
2.1m answers
60 comments
56.8k users