Guide
How to use Firebase App in Capacitor
Using @capgo/capacitor-firebase-app
Capacitor plugin for Firebase App.
Install
bun add @capgo/capacitor-firebase-app
bunx cap sync
bunx cap sync copies the plugin's native code into your native projects. Run it again after every plugin upgrade.
Import
import { FirebaseApp } from '@capgo/capacitor-firebase-app';
API at a glance
| Method | Description |
|---|---|
getName |
Get the name for this app. |
getOptions |
Get the configuration options for this app. |
Examples
getName()
Get the name for this app.
import { FirebaseApp } from '@capgo/capacitor-firebase-app';
const result = await FirebaseApp.getName();
console.log(result);
getOptions()
Get the configuration options for this app.
import { FirebaseApp } from '@capgo/capacitor-firebase-app';
const result = await FirebaseApp.getOptions();
// The result holds sensitive values: use it without logging it.
Full reference
Keep going from Using @capgo/capacitor-firebase-app
If you are using Using @capgo/capacitor-firebase-app to plan native plugin work, connect it with Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, Adding or Updating Plugins for the implementation detail in Adding or Updating Plugins, Ionic Enterprise Plugin Alternatives for the product workflow in Ionic Enterprise Plugin Alternatives, and Capgo Native Builds for the product workflow in Capgo Native Builds.