this.platform.ready().then((readySource) => {
this.log('Platform ready from: '+ readySource);
this.nativeAudio.preloadComplex('key1', 'assets/audio/filename.wav', 1, 1, 0).then(
(success) => {
this.log('nativeAudio preloadComplex success');
}, (failure) => {
this.log('nativeAudio preloadComplex failure: '+failure);
});
});
This is the code that I am running in the constructor of my class. Currently I am just hardcoding in the name of the file, but eventually I would move that out to NavParams so I can reuse the class (since all the files would be in the same directory).
When I run the project from ionic cordova run android, it works just fine. The second I push to IV it stops working and throws the FNFE. I have a GitHub repo for this, but I did not push the changes I made last night to the repo so I am not positive the /src/asset/audio/ structure made it to IV - I can double check on that at some point. I am testing the IV with an Android device currently.