Setting a MPMediaItem's MPMediaItemPropertyRating does not sync back to iCloud Music.

Originator:abednarz42
Number:rdar://27946157 Date Originated:22/08/2016
Status:Closed - Duplicate of 23378455 Resolved:
Product:iOS Music Library Product Version:7,8,9,10
Classification: Reproducible:
 
Area:
Music

Summary:
When you programatically set a MPMediaItem's MPMediaItemPropertyRating value, the change persists in the local media library. However it does not sync back to the iCloud Music library.

But when the user changes a song rating with the iOS7,8,9 Music App - the change almost instantly is reflected in iTunes on a Mac. 

When programmatically changed, the rating change should also be automatically pushed up to iCloud - and then back down to all devices logged into iCloud Music Library.

Steps to Reproduce:
example code:

        let musicController: MPMusicPlayerController = MPMusicPlayerController.systemMusicPlayer()
        if let item: MPMediaItem = musicController.nowPlayingItem {
            item.setValue( NSNumber(value: 5 ), forKey: MPMediaItemPropertyRating)
        }


Expected Results:
The rating change should be pushed up to iCloud - and then back down to all devices logged into iCloud Music Library. This is what occurs when the user changes a song rating with the iOS7,8,9 Music App - the change almost instantly is reflected in iTunes on a Mac.

Actual Results:
The change will persist locally, but not synced back up to iCloud. If the file changes elsewhere, the iCloud Sync when then override the locally changed rating. 

Version:
iOS7,8,9,10

Notes:
Ratings are gone from the iOS10 music app UI - while still present in data and used by smart playlists. I want to put out a small app to allow setting ratings (even just for myself!) - but it won't work properly if it doesn't sync back to iCloud. :)

Configuration:
iPhone 6S (ios10), 6 (ios9), 4 (ios7)

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!