November 2017
Beginner to intermediate
288 pages
7h 33m
English
Before we begin, we need to make sure that our application is fully configured with Firebase. For that, please check the Adding the Firebase plugin to our application recipe within this chapter, which will teach you how you can do just that.
You will also need to initialize the Firebase plugin within the application. To do that, open your project, head to your app.js file, and add the following line:
var firebase = require("nativescript-plugin- firebase");
This will import the Firebase NativeScript plugin. Next, add the following lines of code:
firebase.init({}).then((instance) => { console.log("[*] Firebase was successfully initialised"); }, (error) => { console.log("[*] Huston we've an initialization error: " + error ...
Read now
Unlock full access