0

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.

michelle9090
  • 267
  • 1
  • 4
  • 14
  • 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 Answers2

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
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.

Community
  • 1
  • 1
Joerg
  • 3,102
  • 2
  • 24
  • 30