fm-notification-service

Capacitor plugin that show a notification alert when a message received from firebase

$50

0 downloads
mfettah

fm-notification-service

Capacitor plugin that shows a Firebase push notification with audio and vibration alerts when a message is received

Install

npm install fm-notification-service
npx cap sync

API

startNotificationService(...)

startNotificationService(options: { value: string; }) => Promise<{ value: string; }>
ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>


stopNotificationService(...)

stopNotificationService(options: { value: string; }) => Promise<{ value: string; }>
ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>


addListener('notificationUpdate', ...)

addListener(eventName: 'notificationUpdate', listenerFunc: (data: NotificationData) => void) => Promise<PluginListenerHandle>
ParamType
eventName'notificationUpdate'
listenerFunc(data: NotificationData) => void

Returns: Promise<PluginListenerHandle>


removeAllListeners()

removeAllListeners() => Promise<void>

Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>

NotificationData

PropType
messagenumber
bodynumber

Monetize your
open-source work

Supercharge your OSS projects by selling npm packages. Get started in just 5 minutes.