an-rahulpandey / cordova-plugin-dbcopy

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

Copy from a different folder #51

Closed pdring closed 6 years ago

pdring commented 6 years ago

Hi,

When I push my application to the Ionic Dashboard, the www is not copied and so the database is not available when I run it from Ionic View. In Xcode and Android Studio, my test builds work perfectly. Is there a way to copy the database from the resources or src > assets folder?

Thanks.

an-rahulpandey commented 6 years ago

Very first version of the plugin used to do the same. Since everyone uses cli to build, it was not viable option so I had to remove that, but I will see if I can implement that feature.

pdring commented 6 years ago

Thanks!

gatelli commented 6 years ago

Hi, I need to copy DB from a DB downloaded via filetransfer so that is stored in cdvfile://localhost/persistent/path/to/downloads/ (so in iOS it's something like file:///var/mobile/Containers/Data/Application/.../Documents/path/to/downloads/) Is there a way to edit your ios and android file to force the directory to that, instead of /www ? Thanks a lot, I'm stuck....