Lock Screen Controls when streaming via MPMusicPlayerController

Originator:jg
Number:rdar://49654943 Date Originated:04/05/2019
Status: Resolved:
Product:MusicKit on iOS Product Version:1.0/1
Classification:Suggestion Reproducible:
 
Summary:
When streaming Apple Music songs via MPMusicPlayerController.applicationXPlayer, and the user backgrounds the app, there is no way to display music info or controls on the lock-screen.

Prior to iOS 12, this info was populated automatically, although it was difficult to infer that a control-event had happened. This no longer occurs beginning with iOS 12 (I think that's when it started), and in fact the streaming audio no longer keeps our app alive when backgrounded (it is suspended immediately, as if the music playback belongs to a different process).

When streaming music through an AVAudioSession that our app controls, we can manually configure the MPNowPlayingInfoCenter and MPRemoteCommandCenter. This would be ideal, but has never been possible when using MPMusicPlayerController.applicationXPlayer.

Steps to Reproduce:
1) Run the example project on a physical device (not a simulator) with a valid Apple Music subscription.

2) Open the app & verify that "Jitterbug" begins playing.

3) Lock the phone

4 Awake the screen

Expected Results:
The music info & playback controls should be present on the lock-screen

Actual Results:
There is no music info or lock-screen controls (and, the app is suspended, but that's difficult to verify in this example project).

Version/Build:
1.0/1

Configuration:
any

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!