Skip to content

@jakguru/vueprint / @jakguru/vueprint/services/push / WebPushNotificationOptions

Interface: WebPushNotificationOptions

@jakguru/vueprint/services/push.WebPushNotificationOptions

Describes the options for creating a web push notification.

Properties

title

title: string

Defined in

src/services/push.ts:52


body

Optional body: string

Defined in

src/services/push.ts:53


closeOnClick

Optional closeOnClick: boolean

Defined in

src/services/push.ts:60


icon

Optional icon: string

Defined in

src/services/push.ts:54


Optional link: string

Defined in

src/services/push.ts:55


onClick

Optional onClick: (event: Event) => void

Type declaration

▸ (event): void

Parameters
NameType
eventEvent
Returns

void

Defined in

src/services/push.ts:61


onClose

Optional onClose: (event: Event) => void

Type declaration

▸ (event): void

Parameters
NameType
eventEvent
Returns

void

Defined in

src/services/push.ts:62


onError

Optional onError: (error: Error) => void

Type declaration

▸ (error): void

Parameters
NameType
errorError
Returns

void

Defined in

src/services/push.ts:63


onShow

Optional onShow: (event: Event) => void

Type declaration

▸ (event): void

Parameters
NameType
eventEvent
Returns

void

Defined in

src/services/push.ts:64


requireInteraction

Optional requireInteraction: boolean

Defined in

src/services/push.ts:56


silent

Optional silent: boolean

Defined in

src/services/push.ts:59


timeout

Optional timeout: number

Defined in

src/services/push.ts:57


vibrate

Optional vibrate: number[]

Defined in

src/services/push.ts:58

Vueprint is a commercial work product released under the MIT License and is provided as-is with no warranty or guarantee of support.