Notification listener & checkpermission for android < 13
npm install capacitor-custom-android-notification
npx cap synccheckNotificationPermission()addListener('inAppNotificationTriggered', ...)- Interfaces
- Type Aliases
checkNotificationPermission() => Promise<{ status: "granted" | "denied" | "not_applicable"; }>Returns: Promise<{ status: 'granted' | 'denied' | 'not_applicable'; }>
addListener(eventName: notificationEvents, listener: (event: notificationMessage) => void) => Promise<PluginListenerHandle>| Param | Type |
|---|---|
eventName |
'inAppNotificationTriggered' |
listener |
(event: notificationMessage) => void |
Returns: Promise<PluginListenerHandle>
| Prop | Type |
|---|---|
remove |
() => Promise<void> |
'inAppNotificationTriggered'
{ message: string; }