简体   繁体   English

Windows 10中的Chrome的HTML 5通知一次只能允许一个?

[英]Chrome's HTML 5 notifications in Windows 10 only allow one at a time?

As of yesterday, Chrome's notifications by default go through the Action Center on Windows 10. This is great, except when you want to send multiple notifications, it looks like only one of them is visible. 截至昨天为止,Chrome的通知默认情况下会通过Windows 10上的“操作中心”进行。这很棒,除了要发送多个通知时,看起来只有其中一个可见。

If you want a persistant notification, that means that once that notification fires, you can't notify the user about anything until they dismiss the persistant notification! 如果您需要持久性通知,则意味着该通知一旦触发,您就无法通知用户任何事情,除非他们关闭了持久性通知!

Before the notifications were integrated with the action center, you could send multiple notifications at the same time, and they would funciton as expected. 在将通知与操作中心集成之前,您可以同时发送多个通知,它们将按预期运行。

Is there anyway to display multiple notifications with the default settings in Chrome after this update? 在此更新之后,是否仍可以在Chrome中使用默认设置显示多个通知?

There's a way to change the amount of notification per app, in the "Notifications & actions" settings page (this setting does not apply for notifications banner, unfortunately). 在“通知和操作”设置页面中,有一种方法可以更改每个应用程序的通知量(不幸的是,此设置不适用于通知横幅)。

Just click on the Chrome icon in the applications list at the bottom of the page, and change the number of displayed notifications in the appropriate drop down. 只需单击页面底部的应用程序列表中的Chrome图标,然后在相应的下拉列表中更改显示的通知数。

Note you can simply tell Chrome to avoid using the Windows 10 action center by changing the value of the following flags ( chrome://flags ): 请注意,您只需更改以下标志( chrome:// flags )的值,即可告诉Chrome避免使用Windows 10操作中心:

  • enable-native-notifications 启用本地通知
  • enable-message-center-new-style-notification 启用消息中心新样式通知

FYI, Windows just broke the handling of notifications' events (onclick, onclose...) at the time of writing these lines, while it works when using the notifications center of MacOs... 仅供参考,在编写这些行时,Windows刚刚中断了对通知事件的处理(onclick,onclose ...),而在使用MacOs的通知中心时它就起作用了...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM