Skip to content

Interface: ILocalNotificationProvider

Makaio Framework


Makaio Framework / services-core/local-notification / ILocalNotificationProvider

Defined in: ../../../packages/services/core/src/local-notification/types.ts:10

Local notification provider interface.

Each platform (Electron, iOS, Android, Web) implements this interface to show native notifications.

readonly displayName: string

Defined in: ../../../packages/contracts/src/capability/types.ts:11

Human-readable name for display in UI

ICapabilityProvider.displayName


readonly id: string

Defined in: ../../../packages/contracts/src/capability/types.ts:9

Unique identifier for this provider instance

ICapabilityProvider.id


readonly optional providerKey?: string

Defined in: ../../../packages/contracts/src/capability/types.ts:17

Stable provider identity used for joins across registries.

Unlike id, this should remain stable across runtime re-registration.

ICapabilityProvider.providerKey

isAvailable(): boolean

Defined in: ../../../packages/services/core/src/local-notification/types.ts:22

Check if the provider is available and has permission.

boolean

Whether notifications can be shown


notify(notification): Promise<NotifyResponse>

Defined in: ../../../packages/services/core/src/local-notification/types.ts:16

Show a notification using the platform’s native API.

LocalNotificationPayload

The notification payload

Promise<NotifyResponse>

Result indicating success or failure


optional validate(): Promise<{ error?: string; valid: boolean; }>

Defined in: ../../../packages/contracts/src/capability/types.ts:22

Optional validation method to check provider configuration/credentials.

Promise<{ error?: string; valid: boolean; }>

Validation result with optional error message

ICapabilityProvider.validate