I am having a weird issue on iOS.
I am using the Ionic Native Media plugin to record audio and trying to play the recording back using the HTML5 Web Audio API (WavesurferJS or HowlerJS). After I record the audio if I try to play the recording back immediately the audio will not play, but if I close the app and then re-open it, the audio will play fine.
The error that HowlerJS is throwing is "error decoding the audio." My thoughts are the Native Media plugin has not fully released the file, thus not giving permissions to HowlerJS to read the audio data.
Any thoughts or direction is appreciated.
https://github.com/ionic-team/ionic-native/blob/master/src/%40ionic-native/plugins/media/index.ts - mentions stuff in comments..
Use Cordova Plugin Media :
Useful article from ionic doc :
https://ionicframework.com/docs/native/media/