Variable: LocalNotificationSchemas
Makaio Framework / services-core/local-notification/schemas / LocalNotificationSchemas
Variable: LocalNotificationSchemas
Section titled “Variable: LocalNotificationSchemas”
constLocalNotificationSchemas:object
Defined in: ../../../packages/services/core/src/local-notification/schemas.ts:107
Local notification domain schemas.
Local notifications are platform-native notifications (Electron, iOS, Android, Web). Unlike push notifications, only one provider is active per platform.
Type Declaration
Section titled “Type Declaration”getProvider
Section titled “getProvider”getProvider:
object
Get the current platform’s notification provider info.
getProvider.request
Section titled “getProvider.request”request:
ZodObject<{ },$strip>
getProvider.response
Section titled “getProvider.response”response:
ZodObject<{provider:ZodNullable<ZodObject<{available:ZodBoolean;displayName:ZodString;id:ZodString; },$strip>>; },$strip>
notify
Section titled “notify”notify:
object
Show a local notification on the current platform.
notify.request
Section titled “notify.request”request:
ZodObject<{body:ZodString;icon:ZodOptional<ZodString>;title:ZodString;url:ZodOptional<ZodString>; },$strip> =LocalNotificationSchema
notify.response
Section titled “notify.response”response:
ZodDiscriminatedUnion<[ZodObject<{success:ZodLiteral<true>; },$strict>,ZodObject<{error:ZodString;success:ZodLiteral<false>; },$strict>],"success"> =NotifyResponseSchema