/capacitor-firebase-app

⚡️ Capacitor plugin for Firebase App.

Primary LanguageJavaMIT LicenseMIT

⚠️ Deprecated repository

This project has been moved to the following monorepo: robingenz/capacitor-firebase.



Firebase App

@robingenz/capacitor-firebase-app

Capacitor plugin for Firebase App.


Maintainers

Maintainer GitHub Social
Robin Genz robingenz @robin_genz

Installation

npm install @robingenz/capacitor-firebase-app
npx cap sync

Add 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.

Changelog

See CHANGELOG.md.

License

See LICENSE.