Skip to main content
Brave Programmer Logo

BraveProgrammer

BraveProgrammer

HomeProjectsBlogsCoursesLessonsAbout

Site footer

BraveProgrammer

Free coding courses, practical tutorials, and real projects from BraveProgrammer. Learn web development with React, Next.js, and TypeScript.

Navigation

  • Home
  • Projects
  • Blogs
  • Courses

Resources

  • About
  • Lessons
  • Teach on BraveProgrammer

© 2026 BraveProgrammer. All rights reserved.

System Notifications | Electron.js Desktop App Development l | BraveProgrammer
  1. Courses
  2. /
  3. Electron.js Desktop App Development

Lesson 7 of 28

·javascript

System Notifications

8 mins

Course progress25%

What you'll learn

Keep these ideas in mind as you work through the lesson.

4 points
  • Notifications are created via the **`Notification`** class (main process).
  • They automatically respect the OS's Do‑Not‑Disturb settings.
  • You can add **action buttons** on macOS/Windows.
  • Remember to request permission on macOS for sending notifications.

System Notifications

Electron provides the Notification API (same as the browser) but works in the main process and can show native OS notifications.

function notify(title, body){
  new Notification({ title, body }).show();
}

notify('Download complete', 'Your file has been saved to ~/Downloads');

On macOS you can add actions (buttons) and on Windows you can set urgency.

If you need richer notifications (progress bar, images) use the electron-notify or node-notifier libraries.

Make it stickPractice what you've learned1 quiz · 5 practical tests · Optional activities from Electron.js Desktop App DevelopmentBrowse activities
Previous lessonNative Dialogs – Open & Save FilesContinue to lesson 8Integrating Front‑End Frameworks (React/Vue)Back to Electron.js Desktop App Development curriculum