@robingenz/test-1
v0.6.0
Published
Test
Readme
@robingenz/test-1
⚡️ Capacitor plugin for Firebase App.
Installation
npm install @robingenz/capacitor-firebase-app
npx cap syncAdd Firebase to your project if you haven't already (Android / iOS).
Configuration
No configuration required for this plugin.
Demo
A working example can be found here: robingenz/capacitor-firebase-plugin-demo
Usage
import { FirebaseApp } from '@robingenz/capacitor-firebase-app';
const getName = async () => {
const result = await FirebaseApp.getName();
};
const getOptions = async () => {
const result = await FirebaseApp.getOptions();
};API
getName()
getName() => Promise<GetNameResult>Get the name for this app.
Returns: Promise<GetNameResult>
getOptions()
getOptions() => Promise<GetOptionsResult>Get the configuration options for this app.
Returns: Promise<GetOptionsResult>
Interfaces
GetNameResult
| Prop | Type | Description |
| ---------- | ------------------- | ---------------------------- |
| name | string | The unique name of this app. |
GetOptionsResult
| Prop | Type | Description |
| ------------------- | ------------------- | -------------------------------------------------------------- |
| apiKey | string | API key used for authenticating requests from your app. |
| applicationId | string | Google App ID used to uniquely identify an instance of an app. |
| databaseUrl | string | The database root URL. |
| gcmSenderId | string | The Project Number. |
| projectId | string | The Google Cloud project ID. |
| storageBucket | string | The Google Cloud Storage bucket name. |
