I am dsigning an app for iOS using phonegap. What I want to do is log down the date and time each time when the user pressed a button on the screen, and be able to view the log on device screen with an admin access. I know I have to create some sort of a database to store the info, but can someone give me an example on how to create one as I'm new to phonegap and not sure how to do that.
Asked
Active
Viewed 50 times
0
-
Possible duplicate of [I need a client side browser database. What are my options](http://stackoverflow.com/questions/4777968/i-need-a-client-side-browser-database-what-are-my-options) – Rayon Jan 11 '16 at 04:29
2 Answers
0
It seems as localStorage would be sufficient for your problem. You can simlply Json.stringify your data and put it to the local storage. Later get it from there and json.parse it. No phonegap needed just pure html5. Try search for localstorage HTM5

Patrick Kelleter
- 2,631
- 1
- 13
- 19
-
Localstorage can only store 5MB of data as I heard. I want something that can store more than that. – michelle9090 Jan 11 '16 at 06:46
0
In my opinion the best SQLite Plugin for saving a lot of data is this plugin:
https://github.com/brodysoft/Cordova-SQLitePlugin
There is no limit of storing. In this post How to compact SQL instructions in Cordova? I have written how to compact SQLite instructions, so you have not all this event overload.
But do you really want save every tap? That will be a lot of scripting work.