Data storing is a basic requirement while creating an application.
It is possible to store data online but the app needs to be online whenever data processing is required.
For local data storage use SQLite database which is already embedded on the mobile platforms – Android, IOS, Windows, Blackberry, etc.
The Cordova plugin provides support to access SQLite database in the app.
In this tutorial, I am creating an Android app where use SQLite database to save and retrieve records. Deploy the application with PhoneGap Build.