title: Is there a private API to be able to detect what is current foreground app on iOS?
body: <p>I am not planning to send this app to AppStore. It's just an experimental app. So, I am not worried about AppStore approval/rejection.</p>
  
  <p>I am looking for a way, how I can determine </p>
  
  <p>a) What is the current foreground app (my app will be in the background at that moment. I may use audio player or voip for this)</p>
  
  <p>b) Detect when new application became foreground app</p>