fcm-multiple-project
v0.0.7
Published
Firebase messaging multiple project. It send push notification from multiple project firebase.
Downloads
6
Readme
fcm-multiple-project
Firebase messaging multiple project. It send push notification from multiple project firebase.
Install
npm install fcm-multiple-project
npx cap syncAPI
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 |
