The OpenFin Notification Center provides developers with a uniform way to create, display and organize desktop notifications as well as responding to notification events.
Notifications will be displayed as toasts as well as being listed and organized in a Notification Center. The Notification Center can be accessed by clicking on the Notifications icon in the system tray.
This project consist of 2 parts:
Integrating the Notification Center within an application is done by importing the Client API.
npm install openfin-notifications
The client library is also available as a resource which can be included via <script>
tag:
<script src="https://cdn.openfin.co/services/openfin/notifications/<VERSION>/openfin-notifications.js"></script>
This will expose the global variable notifications
with the API methods documented in the link below. Example:
const notes = await notifications.getAll();
The client module exports a set of functions, documented in the API docs.
Documentation is available here.