Native Audio asset not found

#1

Hello friends!

I’m trying to play custom songs with Native Audio, i did as recommended documentation, but does not work.

The error message is: (NATIVE AUDIO) Asset not found. (assets/audio/custom.mp3)

I searched and read into forum some posts, but not find any practice solution.

My code that’s here:

this.platform.ready().then(() => {
  this.nativeAudio.preloadComplex('id1', 'assets/audio/custom.mp3', 1, 1, 0).then(() => {
    // after loaded

    this.nativeAudio.play('id1', () => console.log('notificationSong is done playing'));
  }).catch(error => {
    console.log(error);
  });
})

Thats code is started in my ionViewDidLoad of page, in this event i start a local-notification and it works.

Where i can be wrong?