OpenFin Workspace API
    Preparing search index...

    Function getAll

    • Retrieves all Notifications which were created by the calling application, including child windows. Child window notifications will only be included if the notification security rules allow it.

      import {getAll} from 'openfin-notifications'

      getAll().then((notifications: Notification[]) => {
      console.log(`Service has ${notifications.length} notifications for this app:`, notifications);
      });

      There is deliberately no mechanism provided for fetching notifications that were created by a different application.

      Returns Promise<
          Readonly<
              Required<
                  | Omit<TemplateMarkdown, "buttons">
                  | Omit<TemplateList, "buttons">
                  | Omit<TemplateCustom, "buttons">,
              > & { buttons: readonly Required<ButtonOptions>[] },
          >[],
      >