Use native audio


#1

my question is general:

    ionViewWillEnter(){
		this.no= this.navParams.get('no');
		if(this.no==..){
			..................
		}
		else if(this.no==..){
			..................
		}
		else if(this.no==..){
			..................
		}
		else{}	
        }


  	}

I want to audio file is changed depending on the situation(ionViewWillEnter).


Audio dont working my file
Native audio error message
#2

Please elaborate your question.

Then someone can help you


#3

ionViewDidLoad() executes before ionViewWillEnter(). In general, it’s dangerous to rely on order of execution of lifecycle events, and doubly so when you’ve demonstrably made the wrong bet.