⚡️ Capacitor plugin for Firebase App.
npm install @capacitor-firebase/app firebase
npx cap sync
Add Firebase to your project if you haven't already (Android / iOS / Web).
No configuration required for this plugin.
A working example can be found here: robingenz/capacitor-firebase-plugin-demo
import { FirebaseApp } from '@capacitor-firebase/app';
const getName = async () => {
const result = await FirebaseApp.getName();
};
const getOptions = async () => {
const result = await FirebaseApp.getOptions();
};
getName() => Promise<GetNameResult>
Get the name for this app.
Returns: Promise<GetNameResult>
getOptions() => Promise<GetOptionsResult>
Get the configuration options for this app.
Returns: Promise<GetOptionsResult>
Prop | Type | Description |
---|---|---|
name |
string |
The unique name of this app. |
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. |
See CHANGELOG.md.
See LICENSE.