I have written a basic note-taking application, using the cordovaSQLite plugin.
The application works perfectly on the Genymotion emulator, the data is persistent and is showing up even on restarting the emulator.
However, it doesn’t look like the database is being saved on my actual phone.
When I restart the application on my phone, no older notes are being loaded.
They are being loaded on the emulator, but not on the actual phone.
Attached is the link to the app.js file in my Github repo.
That didn’t seem to work…
If it helps, here is the console log from chrome://inspect/#devices that I use to view the console while the application is running on my device. OPEN database: notesDB SQLitePlugin.js:175 (3) new transaction is waiting for open operation SQLitePlugin.js:106 DB opened: notesDB SQLitePlugin.js:80
OPEN database: notesDB SQLitePlugin.js:175 (3) new transaction is waiting for open operation SQLitePlugin.js:106 DB opened: notesDB SQLitePlugin.js:80
But it still works fine on the emulator. Maybe these errors stop execution on the actual device?