Back to Wails

Notifications API Demo

v3/examples/web-apis/notifications/frontend/index.html

2.13.0710 B
Original Source

Notifications API Demo

The Notifications API allows web applications to display system notifications to the user, even when the app is in the background.

Notifications: checking...

Permission

Current permission: checking...

Request Permission

Note: Permission must be granted before notifications can be shown. Some browsers block permission requests in webviews.

Create Notification

Title

BodyThis is a notification from the WebView API demo.

Icon (emoji)NoneBellCheckWarningError

Tag (for grouping)

Require interaction (stays visible) Show NotificationShow Multiple

Preview

Notification Title

Notification body text...

Event Log

Notification events will appear here...