Book Image

Mastering Dart

By : Sergey Akopkokhyants
Book Image

Mastering Dart

By: Sergey Akopkokhyants

Overview of this book

Table of Contents (19 chapters)
Mastering Dart
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


To summarize, we will discuss the important facts about how to support other HTML5 features in Dart.

The web notification API allows you to display notifications outside the context of the web page. The user agent defines the best presentation of notifications, which depends on the location of the device. The web notification API is available as a part of the dart:html package and allows you to send information to a user even if the application is idle. When you build web applications, you can use the notification API in event handlers or polling functions to notify users.

Before you send any notifications to the user, the website must have permissions. Users can let websites send notifications automatically or with the permission request first. All the websites that request access to the notification API are added to the list of the notification exceptions. The constructor of the Notification class has optional properties that help you create notifications with the body and icon.

Dragging...