Search code examples
iphoneiositunes

(iOS) Is there a way for an app to open the iTunes music player app (preferably going straight to the Now Playing screen)?


I would like to be able to launch the iTunes app from my app when I tap a button (note that I mean the actual music player, NOT the iTunes Store or App Store). Preferably I'd like it to go straight to the Now Playing screen. Is there any way to accomplish this?


Solution

  • Yes, it is possible to open the iTunes music player to the "now playing" screen using the music:// URL scheme. Found this out rather incidentally while reading this post on how to quickly launch apps using Siri.

    Also, here are a few sites that you might find handy if you ever need to answer the question "Can I open Application X with a url?"