fcm-multiple-project

Firebase messaging multiple project. It send push notification from multiple project firebase.


Keywords
capacitor, plugin, native
License
MIT
Install
npm install fcm-multiple-project@0.0.7

Documentation

fcm-multiple-project

Firebase messaging multiple project. It send push notification from multiple project firebase.

Install

npm install fcm-multiple-project
npx cap sync

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
Param Type
options { value: string; }

Returns: Promise<{ value: string; }>


add(...)

add(firebaseConfig: FirebaseConfig) => Promise<void>
Param Type
firebaseConfig FirebaseConfig

addListener(...)

addListener(eventName: 'multipleToken', listenerFunc: (token: FirebaseToken) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
Param Type
eventName "multipleToken"
listenerFunc (token: FirebaseToken) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


addListener(...)

addListener(eventName: 'multipleTokenError', listenerFunc: (error: FirebaseTokenError) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
Param Type
eventName "multipleTokenError"
listenerFunc (error: FirebaseTokenError) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


removeAllListeners()

removeAllListeners() => Promise<void>

clean()

clean() => Promise<void>

Interfaces

FirebaseConfig

Prop Type
firebaseAppName string
apiKey string
applicationId string
databaseUrl string
gaTrackingId string
gcmSenderId string
storageBucket string
projectId string
measurementId string

PluginListenerHandle

Prop Type
remove () => Promise<void>

FirebaseToken

Prop Type
token string
firebaseAppName string

FirebaseTokenError

Prop Type
error string
firebaseAppName string