Skip to content

norfaizahain/capacitor-custom-android-notification

Repository files navigation

capacitor-custom-android-notification

Notification listener & checkpermission for android < 13

Install

npm install capacitor-custom-android-notification
npx cap sync

API

checkNotificationPermission()

checkNotificationPermission() => Promise<{ status: "granted" | "denied" | "not_applicable"; }>

Returns: Promise<{ status: 'granted' | 'denied' | 'not_applicable'; }>


addListener('inAppNotificationTriggered', ...)

addListener(eventName: notificationEvents, listener: (event: notificationMessage) => void) => Promise<PluginListenerHandle>
Param Type
eventName 'inAppNotificationTriggered'
listener (event: notificationMessage) => void

Returns: Promise<PluginListenerHandle>


Interfaces

PluginListenerHandle

Prop Type
remove () => Promise<void>

Type Aliases

notificationEvents

'inAppNotificationTriggered'

notificationMessage

{ message: string; }

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published