cordova-plugin-ionic icon indicating copy to clipboard operation
cordova-plugin-ionic copied to clipboard

threadhelper also for copyTo and remove actions

Open paolosanchi opened this issue 3 years ago • 6 comments

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.

paolosanchi avatar Feb 26 '21 08:02 paolosanchi