Links
Comment on page

Local notifications

Schedule and manage on devices notifications

Declaration

const localNotifications: KVStorage

Interface

interface LocalNotifications {
scheduleNotification(options: {
title: string;
body: string;
identifier: string;
date: Date;
}): Promise<void>;
​
scheduleGeofenceNotification(options: {
title: string;
body: string;
identifier: string;
coordinate: {
latitude: number;
longitude: number;
};
radius: number; // in meters
notifyOnEntry: boolean;
notifyOnExit: boolean;
}): Promise<void>;
​
cancelNotification(identifier: string): Promise<void>;
}