
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@capacitor-firebase/app
Advanced tools
Unofficial Capacitor plugin for Firebase App.1
npm install @capacitor-firebase/app firebase
npx cap sync
Add Firebase to your project if you haven't already (Android / iOS / Web).
If needed, you can define the following project variable in your app’s variables.gradle
file to change the default version of the dependency:
$firebaseCommonVersion
version of com.google.firebase:firebase-common
(default: 21.0.0
)This can be useful if you encounter dependency conflicts with other plugins in your project.
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>
Since: 0.1.0
getOptions() => Promise<GetOptionsResult>
Get the configuration options for this app.
Returns: Promise<GetOptionsResult>
Since: 0.1.0
Prop | Type | Description | Since |
---|---|---|---|
name | string | The unique name of this app. | 0.1.0 |
Prop | Type | Description | Since |
---|---|---|---|
apiKey | string | API key used for authenticating requests from your app. | 0.1.0 |
applicationId | string | Google App ID used to uniquely identify an instance of an app. | 0.1.0 |
databaseUrl | string | The database root URL. | 0.1.0 |
gcmSenderId | string | The Project Number. | 0.1.0 |
projectId | string | The Google Cloud project ID. | 0.1.0 |
storageBucket | string | The Google Cloud Storage bucket name. | 0.1.0 |
See CHANGELOG.md.
See LICENSE.
This project is not affiliated with, endorsed by, sponsored by, or approved by Google LLC or any of their affiliates or subsidiaries. ↩
FAQs
Capacitor plugin for Firebase App.
We found that @capacitor-firebase/app demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.