这取决于您的需求。您可以使用第三方服务,例如Pushed(https://pushed.co/)或Spontit(https://spontit.com,https://api.spontit.com)。或者,您可以将网站设置为手机上的Chrome应用程序,然后您就可以通过Chrome发送通知。 https://developers.google.com/cloud-messaging/chrome/client https://developers.google.com/web/updates/2015/03/push-notifications-on-the-open-web?hl=en 在这两种情况下,您都需要建议您的用户在手机上安装该应用程序以订阅通知。
当我提出这个问题时,它还不可能。但是后来Web通知出现了。您可以从Web浏览器接收Web通知。https://developer.mozilla.org/en-US/docs/Web/API/notification