I am using ionic+cordova+angular for an app. I have a database.db file in /www and by using ionic sqlite copy plugin, i managed to copy the .db file and after that using it with ionic sqlite plugin. All works well when debugging with ionic cordova build android -l --debug.
But when i try just ionic cordova build android for building my apk, it deletes the whole /www file and i loose the .db file. The bad part is that the copy method from ionic sqlite copy plugin only wants that .db file to be in /www, i cannot give a custom reference to the file.
So, is there any way to not have the www/database.db deleted? Or do you have another idea for this issue?