0.0.7 • Published 3 years ago

fcm-multiple-project v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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; }>
ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>


add(...)

add(firebaseConfig: FirebaseConfig) => Promise<void>
ParamType
firebaseConfigFirebaseConfig

addListener(...)

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

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


addListener(...)

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

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


removeAllListeners()

removeAllListeners() => Promise<void>

clean()

clean() => Promise<void>

Interfaces

FirebaseConfig

PropType
firebaseAppNamestring
apiKeystring
applicationIdstring
databaseUrlstring
gaTrackingIdstring
gcmSenderIdstring
storageBucketstring
projectIdstring
measurementIdstring

PluginListenerHandle

PropType
remove() => Promise<void>

FirebaseToken

PropType
tokenstring
firebaseAppNamestring

FirebaseTokenError

PropType
errorstring
firebaseAppNamestring
0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago