Ionic native audio plugin: stops spotify when "preloadSimple"


#1

Hi everybody,

I am facing an issue with the ionic plugin native audio (https://ionicframework.com/docs/native/native-audio/):

I preload my sounds in my app.component.ts, the sound actually play without any problem.

However this “preloadsimple” function will stop any other music coming from another app upon launching my app (for example user is using spotify: preloadsimple will stop spotify to load my sound, even if it doesn’t play them right away)

Is there any way to prevent that?

Oddly enough, when I use html5 audio instead, it doesn’t stop spotify, but I don’t want to use it because my sounds are played around 500ms delayed, not instantly.

Any help would be greatly appreciated!