Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229612

Ionic Pro doesn't add /www directory?

$
0
0
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.


Viewing all articles
Browse latest Browse all 229612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>