0.0.3 • Published 1 year ago

fm-notification-service v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

fm-notification-service

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

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
0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago