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, you can refer to the preceding Adding the Firebase plugin to our application recipe, which will teach you how you can do that.
You will also need to initialize the Firebase plugin with the application. To do that, open your project, head to your app.js file, and add the following import code:
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