Now u see the notification from facebook while facebook site isn't open. HOW?
Facebook uses the Push Notifications API: https://www.w3.org/TR/push-api/
More information:
They use the Push API - https://developer.mozilla.org/en-US/docs/Web/API/Push_API Quoting from there:
The Push API gives web applications the ability to receive messages pushed to them from a server, whether or not the web app is in the
foreground, or even currently loaded, on a user agent.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.