The API doesn't provide a way to share a playlist and open Apple Music to show that playlist

Originator:james
Number:rdar://30959769 Date Originated:3/10/2017
Status:Open Resolved:
Product:iOS + SDK Product Version:10.2.1
Classification:Feature (New) Reproducible:Always
 
Area:
Media Player Framework

Summary:
When a user opens Apple Music, chooses a playlist and hits the share button, the playlist gets an idpl value seen in the URL that can be shared with other users.

Without a user manually pressing that share button there seems to be no way to get the idpl value or the share URL of a playlist from MPMediaPlaylist.

It would be great if we could programatically get this share URL from MPMediaPlaylist so we can open Apple Music to the specific playlist.

I can get the id of each MPMediaItem in iOS 10.3+ and recreate the playlist on another user's device.  But I can't open Apple Music to this playlist.

Steps to Reproduce:
* Obtain an instance of MPMediaPlaylist
* No way to share this playlist with other users

Expected Results:
A property or method with callback for the share URL in MPMediaPlaylist.

Actual Results:
No way to get share id or URL of a MPMediaPlaylist entity.

Version:
10.2.1 (14D27)

Notes:
I set up a proxy and had a look at the requests iTunes makes.

I created a playlist in iTunes and added songs to the playlist. Every song I added made several requests to various endpoints under: https://ld-6.itunes.apple.com/WebObjects/MZDaap.woa/daap/update No idpl id in any of the responses

Then I manually hit the share button. A request is made to https://client-api.itunes.apple.com/WebObjects/MZStorePlatform.woa/wa/lookup with the idpl id in the URL.

Now when you add more songs to the playlist, the responses contain the idpl id.

From that it seems that the idpl id is created on the device when the user touches share.

Configuration:
iPhone 6s

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!