an-rahulpandey / cordova-plugin-dbcopy

Copy SQLite Database from www folder to default app database location
Apache License 2.0
89 stars 48 forks source link

Plugin not working for me at all #36

Closed Sam747 closed 7 years ago

Sam747 commented 7 years ago

I am trying to implement following tutorial but with no success so far . No error log or anything is thrown back. Please suggest me where I might be wrong .

https://www.thepolyglotdeveloper.com/2015/01/deploy-ionic-framework-app-pre-filled-sqlite-db/

I am using following sample chinook.db (http://www.sqlitetutorial.net/sqlite-sample-database/)

I am using Ionic framework to build for android. Also please tell me where exactly to put my prepopulated db or sqlite file. I am using this location as of now

platforms/android/assets

an-rahulpandey commented 7 years ago

You have to keep the db in www folder - https://github.com/an-rahulpandey/cordova-plugin-dbcopy#database-file-location Also while using the dbcopy command you have to pass the location parameter. The guide which you pasted seems old. See this - https://github.com/an-rahulpandey/cordova-plugin-dbcopy#copy

Sam747 commented 7 years ago

Thankyou for the answer.

I was not defining the location parameter which was the root cause.