title: IONIC AUDIO not working on android, says reference does not exist for the specified audio id
body: <p><strong>BRIEF EXPLANATION :</strong> I have added a simple button in <code>**home.html**</code>. On clicking that button <code>playAudio()</code> function is called from <code>**home.ts**</code>. </p>
  
  <blockquote>
    <p><strong>It is working on browser, but on android it says</strong> - <code>Unhandled Promise rejection: A reference does not exist for the specified audio id. ; Zone: &lt;root&gt; ; Task: null ; Value: A reference does not exist for the specified audio id.</code></p>
  </blockquote>
  
  <p>Below is my <code>home.ts</code> code:</p>
  
  <pre><code>import { Component } from '@angular/core';
  import { NavController } from 'ionic-angular';
  import { BackgroundMode } from '@ionic-native/background-mode';
  import { NativeAudio } from '@ionic-native/native-audio';
  
  @Component({
    selector: 'page-home',
    templateUrl: 'home.html'
  })
  export class HomePage {
  
    constructor(public navCtrl: NavController,public nativeAudio: NativeAudio , public backgroundMode : BackgroundMode) {
  
      //this.nativeAudio.preloadSimple('audio1', './audio1.mp3').then((msg)=&gt;{
        this.nativeAudio.preloadSimple('audio1', 'https://okazari.github.io/Rythm.js/samples/rythmC.mp3').then((msg)=&gt;{
        console.log("message: " + msg);
      }, (error)=&gt;{
        console.log("error: " + error);
      });
  
    }
  
    public playAudio(){
      this.backgroundMode.enable();
      this.backgroundMode.on("activate").subscribe(()=&gt;{
        this.nativeAudio.play("audio1");  
      });
      this.nativeAudio.play("audio1"),() =&gt; console.log('audio1 is done playing');
    }
  
  }
  </code></pre>
  
  <blockquote>
    <p><strong>:: How do i fix the problem ?</strong></p>
  </blockquote>
  
  <p>Also attaching console screenshot of error:</p>
  
  <p><a href="https://i.stack.imgur.com/TY1KU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TY1KU.png" alt="enter image description here"></a></p>