Rigwarl opened a new issue #364: Large file save freeze app for seconds URL: https://github.com/apache/cordova-plugin-file/issues/364 # Bug Report ## Problem ### What is expected to happen? On large file save (> 5mb) app freeze for seconds. Its pause render in my app, and animations start lag and jump. ### What does actually happen? No freeze or lag in render on file save. ## Information <!-- Include all relevant information that might help understand and reproduce the problem --> ### Command or Code ```javascript const save = (data, filename) => { const onErrorHandler = e => console.error('file save error ', filename, e); window.resolveLocalFileSystemURL(cordova.file.externalDataDirectory, dirEntry => { dirEntry.getFile(filename, { create: true, exclusive: false }, fileEntry => { fileEntry.createWriter(fileWriter => { fileWriter.onwriteend = () => console.log('Successful file write ', filename); fileWriter.onerror = onErrorHandler; fileWriter.write(data); }, onErrorHandler); }, onErrorHandler); }, onErrorHandler); }; ``` ### Environment, Platform, Device <!-- In what environment, on what platform or on which device are you experiencing the issue? --> - Galaxy S8 / android 9 - Mi A2 Lite / android 9 ### Version information <!-- What are relevant versions you are using? For example: Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins Other Frameworks: Ionic Framework and CLI version Operating System, Android Studio, Xcode etc. --> - cordova: 9.0.0 - cordova-android: 8.1.0 - cordova-plugin-file: 6.0.2 ## Checklist <!-- Please check the boxes by putting an x in the [ ] like so: [x] --> - [x] I searched for existing GitHub issues - [x] I updated all Cordova tooling to most recent version - [x] I included all the necessary information above
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
