spinybeast opened a new issue #505:
URL: https://github.com/apache/cordova-plugin-file/issues/505
# Bug Report
## Problem
I record audio with Cordova-plugin-media and try to save it with
Cordova-plugin-file. On real device it works correctly, but I need to run it on
simulator. When I run my code on simulator, app crashes without any readable
reason
### What is expected to happen?
fileEntry.file works correctly and returns File object
### What does actually happen?
simulator crashes, I can't debug my code
### Command or Code
```
// stop recording and save file
mediaRec.stopRecord()
mediaRec.release()
window.requestFileSystem(window.LocalFileSystem.TEMPORARY, 0,
(fileSystem) => {
fileSystem.root.getFile(src, {}, (fileEntry) => {
// next string causes crash
fileEntry.file((file) => {
changeHandler(file)
})
})
```
### Environment, Platform, Device
iOS, MacBook Air 2020, Simulator iPhone SE 2020 (iOS 15)
### Version information
Cordova: 10.0.0
Cordova-plugin-file: 6.0.2
## Checklist
- [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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]