Defined in: notification.ts:7
optionalbody?:string
Defined in: notification.ts:9
title:
string
Defined in: notification.ts:8
constnotification:object
Defined in: notification.ts:32
isPermissionGranted: () =>
Promise<boolean>
Whether the OS has authorized notifications for this app.
Promise<boolean>
requestPermission: () =>
Promise<boolean>
Prompts the user for notification authorization (resolves the grant).
Promise<boolean>
send: (
options) =>Promise<void> =sendNotification
Sends a native notification (title + optional body).
Promise<void>
isPermissionGranted():
Promise<boolean>
Defined in: notification.ts:23
Whether the OS has authorized notifications for this app.
Promise<boolean>
requestPermission():
Promise<boolean>
Defined in: notification.ts:28
Prompts the user for notification authorization (resolves the grant).
Promise<boolean>
sendNotification(
options):Promise<void>
Defined in: notification.ts:13
Sends a native notification (title + optional body).
Promise<void>