Comments (4)
Hi,
@SwanGit @mikulifourtechnolab Thanks for figuring out the issue and giving a good insight on it. I will check it out as soon as possible.
how is it possible to do a a manual file copy from:
databases/demo/demo.db to app_Webview/databases/file_0/1/demo.db ?
I don't think it will allow us to copy the file to db location as it might be protected directory.
from cordova-plugin-dbcopy.
@an-rahulpandey @mikulifourtechnolab
On Android 7 the window.sqlitePlugin.openDatabase command, is operating on the "original" Db path: databases/demo/demo.db, while on Android 9 the openDatabase is opening the Db from new default Db path app_Webview/databases/file_0/1/demo.db
However the window.plugins.sqlDB.copyDbFromStorage command is still copying the demo.db to the same path in both Android 7 and 9 databases/demo/demo.db.
This mean that openDatabase can not access/do not find the demo.db database when in Android 9.
To being able to continue to use the cordova-plugin-dbcopy in Android 9, how can we make the copyDbFromStorage command copy the demo db to(when in Android 9):
app_Webview/databases/file_0/1/demo.db ?
Alternatively if the the case is that the cordova-plugin-dbcopy is not Android 9 compatible, how is it possible to do a a manual file copy from:
databases/demo/demo.db to app_Webview/databases/file_0/1/demo.db ?
Please enlighten us if we are completely overlooking something in this case.
from cordova-plugin-dbcopy.
@an-rahulpandey Thank you for quick reply, we really do like the cordova-plugin-dbcopy plugin, it offer such a great and required functionality, but it do need to be Android 9 compatible.
from cordova-plugin-dbcopy.
I have used SQLite plugin "https://github.com/Telerik-Verified-Plugins/SQLite" (v_1.1.0)
and upgraded "cordova-plugin-dbcopy" plugin from (v_2.0.0) to latest version (v_2.1.2) and now database copied to my actual path which i needed with android-9.
My issue got resolved by upgraded "cordova-plugin-dbcopy" plugin.
Thanks
from cordova-plugin-dbcopy.
Related Issues (20)
- copyDbFromStorage: DB Not Present in www folder HOT 2
- Copy from a different folder HOT 3
- Issue with Android copyDbFromStorage HOT 3
- Issue when building Android for ionic HOT 2
- copyDbFromStorage seems to fail for Android 9 HOT 4
- I can't insert or update after copied HOT 1
- Build error in v 2.1.0 HOT 4
- Phonegap build failed with latest version (2.1.1) HOT 8
- copying on a usb storage HOT 1
- customize output file name HOT 1
- What's error code: 400? HOT 2
- Issue on Android 9 *AFTER* succesfull copy on device HOT 1
- Playstore shows crashed Apps
- Ionic 4 problem copy database.db HOT 3
- Error during installation of plugin HOT 1
- error during plugin installation
- copy to device storage
- showing database already exists HOT 1
- Does sqliteDbCopy run on Capacitor? error:400 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-dbcopy.