Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nativescript/firebase-core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@nativescript/firebase-core
npm install @nativescript/firebase-core
Usage
Android
Ensure google-services.json
file located in App_Resources/Android/src
.
iOS
Ensure GoogleService-Info.plist
file located in App_Resources/iOS
.
Initialize Default App
import { firebase } from '@nativescript/firebase-core'
const defaultApp = await firebase().initializeApp();
Initialize Secondary App
import { firebase, FirebaseOptions } from '@nativescript/firebase-core'
const config = new FirebaseOptions()
const secondaryApp = await firebase().initializeApp(config, 'SECONDARY_APP');
License
Apache License Version 2.0