title: ionic play sound on websocket message in background
body: <p>I am working on an Ionic app, that connects with websocket server and when the app receives new message I want to play audio in a loop till user reacts to it.</p>
  <p>All of that works when the app is open. When the app is in the background (or the phone is locked), the sound is not played (either this or the message is not received at all).</p>
  <p>Basically, I want similar behaviour to the Meta's Messanger app.</p>
  <p>How can I achieve that? I guess I lack some basic mobile app development knowledge, because I do backend on daily basis.</p>
  <p>I am developing it for Android.</p>