title: Play sound when silent
body: <p>I have a project where it is required to play a sound when the phone is in silent mode. This was possible in earlier versions of iOS, but it is not in iOS 8 or later using standard APIs.</p>
  
  <p>I am now looking for a possibility to do this using a private API, I have looked thru the header files but I have not found the right one. I would guess an API like this exists but I don't know which. Any suggestions are appreciated.</p>
  
  <p>Please note that solutions that make the play and pause button show is not acceptable. Please also note that I am looking for a private API and I am aware of all issues related to the fact that I am using private APIs. Furthermore playing a sound when the user has set the silent switch to on can make users angry in some cases, but in this case they will be angry if there is no sound (think alarm clock).</p>
  
  <p>EDIT: Will need to do this from background, for example when receiving a push notification.</p>