Ionic Media Native doesn't work on iOS but work on Android


#1

I use Ionic Media Native for listen stream audio on http server

on Android platform works but in iOS doesn’t start

const onStatusUpdate = (status) => console.log(status);
    this.file = this.media.create('http://109.168.100.173:8058/;stream.mp3', onStatusUpdate);

play_radio() {
    this.file.play();
}

#2

As always:

  1. https://ionicframework.com/docs/native/media/?
  2. What does “doesn’t work” mean? Do you get an error? Does nothing happen? WHich one of the lines of code you posted doesn’t work?
  3. What is your ionic info output?