notifications.schedule
Shows a notification at at, or now, even when the app is in the
foreground or not running. Resolves with its id.
Utilisation
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>Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
notification | ScheduledNotification | Oui | — |
Retourne
Promise<string>
Généré depuis les déclarations TypeScript publiques : signatures, props et valeurs par défaut viennent de la source vérifiée, les descriptions de sa JSDoc. Aucune valeur par défaut n'est inventée.