notifications.schedule
Shows a notification at at, or now, even when the app is in the
foreground or not running. Resolves with its id.
Usage
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' });Signatures
(notification: ScheduledNotification): Promise<string>Parameters
| Name | Type | Required | Description |
|---|---|---|---|
notification | ScheduledNotification | Yes | — |
Returns
Promise<string>
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.