What problem does it solve?
It solves the problem of integrating Apple Music catalog search, subscription-gated playback, and accurate playback metadata so your iOS app can control music and show correct track info on the Lock Screen and Control Center.
Core Features & Use Cases
- MusicKit catalog search: Query Apple Music for songs and albums and display results inside your app.
- Subscription checks and authorization: Request MusicKit access and verify Apple Music entitlement before enabling playback.
- Playback and queue management: Play Apple Music content using ApplicationMusicPlayer, including next-item and queue insertion behaviors.
- Now Playing metadata & remote controls: Publish track details via MPNowPlayingInfoCenter and handle play/pause/next/previous through MPRemoteCommandCenter.
- Use Case: Build a SwiftUI mini-player that searches songs, plays them with an app-scoped player, updates Lock Screen metadata per track change, and supports AirPods/Control Center controls.
Quick Start
Integrate the MusicKit capability, add NSAppleMusicUsageDescription, and implement MusicAuthorization + MusicSubscription checks before starting ApplicationMusicPlayer playback.