I have an app which has build in voice recorder using cordova-media-plugin
.
Nominally I can record and save a file.
When I am recording and I close app (without instance.stopRecord()
) then file created, record but not saving correct. I can open it but i can't play it.
Does anybody know how to resolve this issue?
The problem was inside cordova media plugin. I just added cordova onWillTerminate event to the CDVSound.m and just stop recording when event fired.
**If somebody have the same problem here is the link on my patch - ** Patch Link
P.S. - I'm not ios developer. And yes i know that possible to do it more clean. Thanks guys for help.