iOS icon indicating copy to clipboard operation
iOS copied to clipboard

Media Player Doesn't Wipe after Close Tabs and Clear Data

Open dweekly opened this issue 1 year ago • 0 comments

  1. Play media
  2. Hit Close Tabs and Clear Data
  3. Observe Now Playing data still visible in the Control Center

Desired behavior should be to show "Not Playing" in Control Center instead of exposing media metadata from a session that's already been cleared.

This should be achievable by simply assigning nil to now playing, somewhat like the following:

let commandCenter = MPRemoteCommandCenter.shared()
commandCenter.nowPlayingInfo = nil 

dweekly avatar Feb 23 '24 00:02 dweekly