notification-plugin-android
v0.0.29
Published
In app notification popup message & notification Permission
Readme
notification-plugin-android
in app notification popup message
Install
npm install notification-plugin-android
npx cap syncAPI
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; }
