Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Chrome push-notifications without browser running

Does anybody know how to implement receiving of push notifications outside and without running browser?

like image 462
TakinosaJi Avatar asked May 05 '15 13:05

TakinosaJi


1 Answers

There is some nuance to this:

  • Chrome for Android: Push messages will wake up the Service Worker and Web App even if the browser is closed. This is the default and our ideal position across all platforms

  • Desktop Chrome: Push works and will wake up the service worker if the browser is still open. However it will not work if the browser is closed. You can force the browser to remain open if you have a Chrome App that is set to run in the background. Other than that we (the Chrome team) are working out how we enable this by default on Windows, Mac and Linux.

  • Chrome for iOS: Push just does not work on this platform

like image 112
Kinlan Avatar answered Nov 05 '22 12:11

Kinlan