npm install @nativescript/firebase-core
Ensure google-services.json
file located in App_Resources/Android/src
.
Ensure GoogleService-Info.plist
file located in App_Resources/iOS
.
import { firebase } from '@nativescript/firebase-core'
const defaultApp = await firebase().initializeApp()
import { firebase, FirebaseOptions } from '@nativescript/firebase-core'
const config = new FirebaseOptions()
const secondaryApp = await firebase().initializeApp(config, 'SECONDARY_APP')
Apache License Version 2.0