title: How to remove app name from Control Center - Music?
body: <p>I am working on an app (which isn't a music app) however, at some point, it can play audio inside a <code>UIWebView</code> (from an html 5 file) which enabled auto play.</p>
  
  <p>The problem is that, my app name is showing up in iPhone's Control Center inside "Music" section. When I taps on my app name, it will open up my app. However, I don't want this behavior.</p>
  
  <p>I have tried setting <code>[MPNowPlayingInfoCenter defaultCenter].nowPlayingInfo = nil;</code> inside <code>AppDelegate</code>s, when app goes to background or comes to foreground or even terminate case. But its still showing up the app name? Any clue? Is there something I'm missing to set?</p>
  
  <p>Oh and yes, this may help someone to know exact issue, in a view controller where I'm playing an audio inside <code>UIWebView</code>, I have written following code to handle currently playing song in my iPhone music (or any other) app. </p>
  
  <pre><code>- (void) viewWillAppear:(BOOL)animated {
      [super viewWillAppear:animated];
  
      MPMusicPlayerController *mp = [MPMusicPlayerController systemMusicPlayer];
      if(mp.playbackState == MPMoviePlaybackStatePlaying) {
          isSystemMediaPlayerPlaying = YES;
      }
  }
  
  - (void) viewWillDisappear:(BOOL)animated {
      [super viewWillDisappear:animated];
  
      if(isSystemMediaPlayerPlaying) {
          MPMusicPlayerController *mp = [MPMusicPlayerController systemMusicPlayer];
          [mp play];
          isSystemMediaPlayerPlaying = NO;
      }
  }
  </code></pre>
  
  <p>For a note, <code>isSystemMediaPlayerPlaying</code> is a <code>BOOL</code> type.</p>
  
  <p>Screenshot:</p>
  
  <p><a href="https://i.stack.imgur.com/mjtYA.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/mjtYA.jpg" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>P.S. Instead of "You Tube", you can consider "My App Name".</p>
  </blockquote>