BackgroundMode crashes on iOS


#1

Hello,

I developed an audio app for my webradios also using the BackgroundMode to enable longer playing on Android. Without only activating this for the android platform the app crashes immediately on iOS.

Is anybody having the same problem?


#2

Yes I have, have no idea how to fix it :confused:


#3

I tried it this way, but iOS still crashes

if(this.platform.is('android') && !this.backgroundMode.isEnabled()) {
          this.backgroundMode.enable();
}       

so the problem starts already by implementing it in the constructor.