Has anyone encountered issues using the $cordovaSQLite plugin in an app that is being run from Ionic View on iOS only? I can repeat the issue everytime. The small sample app creates and opens the database, creates the table, inserts a record, and the selects that record. All goes well until … I close the sample app (three finger swipe) or close Ionic View and then re-enter my app. It will get as far as creating the table (only if it doesn’t exist) then it throws an error when it tries to insert - it will either be an I/O error or (most of the time) a “readonly database” error.
I am using this plugin: http://ngcordova.com/docs/plugins/sqlite/