notifications.schedule
Shows a notification at at, or now, even when the app is in the
foreground or not running. Resolves with its id.
Verwendung
Schedule a local reminder.
// Schedule a local reminder.
import { notifications, permissions } from 'kuito';
const { status } = await permissions.request('notifications');
if (status === 'granted')
await notifications.schedule({ title: 'Your order shipped', url: 'shop://orders/42' });Signaturen
(notification: ScheduledNotification): Promise<string>Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
notification | ScheduledNotification | Ja | — |
Rückgabe
Promise<string>
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.