LocalNotificationsPlugin

areEnabled

areEnabled(): Promise<LocalNotificationEnabledResult>
Returns: Promise<LocalNotificationEnabledResult>

cancel

cancel(pending: LocalNotificationPendingList): Promise<void>
pending LocalNotificationPendingList
Returns: Promise<void>

getPending

getPending(): Promise<LocalNotificationPendingList>
Returns: Promise<LocalNotificationPendingList>

registerActionTypes

registerActionTypes(options: { types: any }): Promise<void>
options { types: any }
Returns: Promise<void>

schedule

schedule(options: { notifications: any }): Promise<LocalNotificationScheduleResult>
options { notifications: any }
Returns: Promise<LocalNotificationScheduleResult>

addListener

addListener(eventName: "localNotificationReceived", listenerFunc: (notification: LocalNotification) => void): PluginListenerHandle
eventName "localNotificationReceived"
listenerFunc (notification: LocalNotification) => void
Returns: PluginListenerHandle

addListener

addListener(eventName: "localNotificationActionPerformed", listenerFunc: (notificationAction: LocalNotificationActionPerformed) => void): PluginListenerHandle
eventName "localNotificationActionPerformed"
listenerFunc (notificationAction: LocalNotificationActionPerformed) => void
Returns: PluginListenerHandle

Interfaces Used

LocalNotificationEnabledResult

interface LocalNotificationEnabledResult {
// Whether the device has Local Notifications enabled or not
value : boolean;
}

LocalNotificationPendingList

interface LocalNotificationPendingList {
notifications : LocalNotificationRequest[];
}

LocalNotificationScheduleResult

interface LocalNotificationScheduleResult {
notifications : LocalNotificationRequest[];
}