How to persist data in your NativeScript mobile app -- Words (102)

How to persist data in your NativeScript mobile app

Data persitence is a necessity in many mobile applications.NativeScript offers many mechanisms that allow developers to persist data in mobile applications:

Using filesystem


Using sqlite


Using Loki database


What is Loki LokiJS is a document oriented database written in javascript, published under MIT License. Its purpose is to store javascript objects as documents in a nosql fashion and retrieve them with a similar mechanism. - LokiJS

npm install nativescript-loki --save

Using NativeScript application settings



I'm a web developer and technical writer. Passionate about modern JavaScript technologies and currently trying to develop all kind of apps (Web, Mobile and Desktop) with JavaScript.