Function sendNotification
- sendNotification(msg, title?, options?): void
Parameters
- msg: string
Optional
title: stringOptional
options: {
badge?: string;
body?: string;
data?: any;
dir?: "auto" | "ltr" | "rtl";
icon?: string;
image?: string;
lang?: "zh-CN" | "en-US";
onClick?: any;
onClose?: any;
onError?: any;
renotify?: boolean;
requireInteraction?: boolean;
silent?: boolean;
tag?: string;
timestamp?: number;
vibrate?: VibratePattern;
} | NotificationOptions
Returns void
发送 Notification