Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Facebook send notifications without tab

  1. Go to facebook and allow HTML5 Desktop Notification for it.
  2. Close facebook tab.
  3. Ask somebody to write you message on facebook.

Now u see the notification from facebook while facebook site isn't open. HOW?

like image 453
Ximik Avatar asked Jan 26 '16 13:01

Ximik


People also ask

Why does Facebook give me random notifications?

You get notifications because you comment on posts, join groups or follow pages. The less you do of these things, the fewer notifications you'll receive.

How does Facebook notification system work?

Push notifications on Facebook are the alerts you receive when your phone is locked or when you aren't actively browsing Facebook. Think of a Facebook push notification as an alert that pushes through the closed app to make you aware of any Facebook activities that may interest you.

Does Facebook send push notifications?

When you've downloaded the Facebook app, we may send you two types of mobile notifications: Push notifications: sent when you're not actively using Facebook (example: on your device's lockscreen). In-app notifications: sent when you're using Facebook.

How do I stop Facebook from sending random notifications?

In the top right, click your Page photo, then click Settings & Privacy. Click Settings, then click Notifications in the left menu. Select which notifications you want to receive on Facebook.


1 Answers

Facebook uses the Push Notifications API: https://www.w3.org/TR/push-api/

More information:

  • https://developers.google.com/web/fundamentals/push-notifications/
  • https://developers.google.com/web/fundamentals/getting-started/push-notifications/
like image 120
andyrandy Avatar answered Oct 27 '22 08:10

andyrandy