src/lib/toast/push-notifications/interfaces/push-notification.type.ts
| body |
body: |
Type : string
|
| data |
data: |
Type : any
|
| dir |
dir: |
Type : "auto" | "ltr" | "rtl"
|
| icon |
icon: |
Type : string
|
| lang |
lang: |
Type : string
|
| noscreen |
noscreen: |
Type : boolean
|
| renotify |
renotify: |
Type : boolean
|
| silent |
silent: |
Type : boolean
|
| sound |
sound: |
Type : string
|
| sticky |
sticky: |
Type : boolean
|
| tag |
tag: |
Type : string
|
| vibrate |
vibrate: |
Type : number[]
|
export type Permission = 'denied' | 'granted' | 'default';
export interface PushNotification {
body?: string;
icon?: string;
tag?: string;
data?: any;
renotify?: boolean;
silent?: boolean;
sound?: string;
noscreen?: boolean;
sticky?: boolean;
dir?: 'auto' | 'ltr' | 'rtl';
lang?: string;
vibrate?: number[];
}