我从Angular Dart聊天教程开始。我想添加一个按钮,在其他聊天用户的桌面上弹出通知-即使他们最小化了浏览器。
“Web通知”是正确的方法吗?有没有人开发过Angular2 Dart网络通知?
最佳答案
我想您可以直接使用dart:html
包中的Notification api
https://api.dartlang.org/stable/1.22.1/dart-html/Notification-class.html
https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API