0

I am building an iOS app in Swift 5 and I am trying to add a song to the user's Apple Music Library, I fetched all the albums, playlists songs using MPMediaLibrary but can't upload it! Is it possible to upload a song to the user's Apple Music Library?

Yogesh Patel
  • 1,893
  • 1
  • 20
  • 55

1 Answers1

0

The modification could not be made to the user's music library which could not be done by an app because it's the user decision to decide what songs to be in his/her library. There is no such api to achieve this. This is something like you want to install an app in the user's iPhone without user's intervention, which could not be done.

There is already a similar question with Swift 4. Swift 4 Upload song to Apple Music Library

Edit:

Refer this documentation in case if you want to modify playlist/apply ratings to user's library (with the user authorization)

vgnsh
  • 120
  • 1
  • 15