notifications.schedule
Shows a notification at at, or now, even when the app is in the
foreground or not running. Resolves with its id.
Utilização
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' });Assinaturas
(notification: ScheduledNotification): Promise<string>Parâmetros
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
notification | ScheduledNotification | Sim | — |
Devolve
Promise<string>
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.