This project has been moved to the following monorepo: robingenz/capacitor-firebase.
@robingenz/capacitor-firebase-app
Capacitor plugin for Firebase App.
Maintainer | GitHub | Social |
---|---|---|
Robin Genz | robingenz | @robin_genz |
npm install @robingenz/capacitor-firebase-app
npx cap sync
Add Firebase to your project if you haven't already (Android / iOS).
No configuration required for this plugin.
A working example can be found here: robingenz/capacitor-firebase-plugin-demo
import { FirebaseApp } from '@robingenz/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.