Creating Angular Dart Web Notification

Issue

I started out with an Angular Dart chat tutorial. I want to add a button that pops up a notification on the other chat users desktop – even if they have the browser minimized.

Are “Web Notifications” the right approach? Has anyone developed an Angular2 Dart Web Notification?

Solution

I guess you can directly use the Notification api from the dart:html package

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

Answered By – Hadrien Lejard

Answer Checked By – Clifford M. (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published.