Socket
Socket
Sign inDemoInstall

@nativescript-asharghi/firebase-core

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nativescript-asharghi/firebase-core

NativeScript Firebase - Core


Version published
Weekly downloads
1
decreased by-85.71%
Maintainers
1
Weekly downloads
 
Created
Source

@nativescript-asharghi/firebase-core

A plugin to initialize FirebaseApp in your app.

Use this plugin with any of the following plugins:

Installation

Install the plugin by running the following command in the root directory of your project.

npm install @nativescript-asharghi/firebase-core

Configure Firebase for Android

To configure Firebase for Android, see Add Firebase to your Android project and follow the steps below.

Configure Firebase for iOS

To set up Firebase for iOS, see Add Firebase to your Apple project and follow the steps below:

Use @nativescript-asharghi/firebase-core

🚨 Plugin requires both @nativescript-asharghi/firebase-core and any other @nativescript-asharghi/firebase-* plugin to successfully initialize.

Instantiate Firebase and initialize a default app

Import the firebase function and call it to create a NativeScript Firebase instance. Next, call the initializeApp method on the Firebase instance to instantiate the native FirebaseApp.

import { firebase } from '@nativescript-asharghi/firebase-core'
const defaultApp = await firebase().initializeApp();
Initialize Secondary App
import { firebase, FirebaseOptions } from '@nativescript-asharghi/firebase-core'
const config = new FirebaseOptions()
const secondaryApp = await firebase().initializeApp(config, 'SECONDARY_APP');

License

Apache License Version 2.0

Keywords

FAQs

Package last updated on 20 Mar 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc