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
Command or Code
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
- Galaxy S8 / android 9
- Mi A2 Lite / android 9
Version information
- cordova: 9.0.0
- cordova-android: 8.1.0
- cordova-plugin-file: 6.0.2
Checklist
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
Command or Code
Environment, Platform, Device
Version information
Checklist