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. Please check the Adding the Firebase plugin to our application recipe from this chapter, 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:
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); });
The preceding ...
Read now
Unlock full access