1.3.0 • Published 2 years ago

@robingenz/capacitor-firebase-app v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Maintainers

MaintainerGitHubSocial
Robin Genzrobingenz@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

PropTypeDescription
namestringThe unique name of this app.

GetOptionsResult

PropTypeDescription
apiKeystringAPI key used for authenticating requests from your app.
applicationIdstringGoogle App ID used to uniquely identify an instance of an app.
databaseUrlstringThe database root URL.
gcmSenderIdstringThe Project Number.
projectIdstringThe Google Cloud project ID.
storageBucketstringThe Google Cloud Storage bucket name.

Changelog

See CHANGELOG.md.

License

See LICENSE.