cordova-plugin-ionic
cordova-plugin-ionic copied to clipboard
threadhelper also for copyTo and remove actions
In Android, I experienced that "copyTo" and "remove" can take several seconds (i verified at least 16 secs) to execute, and during the execution the UI is blocked. This is very bad for background and custom update mode. I set up for them the "threadhelper" (aka cordova.getThreadPool().execute()), just like it was made for "downloadFile", and it works perfectly without blocking the UI.
Maybe there is a way to do it more "globally" for all the action, however now it works really good.