Questions tagged [apple-music]

Apple Music is a music streaming service created by Apple Inc.

Apple Music is a music streaming service created by Apple Inc. Users can listen on-demand to available tracks or curated playlists. The service also includes Internet radio stations.

Use this tag for questions regarding Apple Music and its APIs. For general Cocoa or Cocoa Touch API questions, use the and tags respectively. For language questions, use the or tags.

196 questions
1
vote
0 answers

Apple Music Authorisation vs Media Library Authorisation

In order to access the User's Apple Music Library, I need to request authorisation from SKCloudServiceController.authorizationStatus() Also, there is another authorisation option in MPMediaLibrary. I need to be able to access both user's library…
Sudara
  • 4,769
  • 3
  • 34
  • 39
1
vote
0 answers

Impossible to retrieve playlist tracklist Apple Music API

Since 2am UTC today , there's an error message returned when getting an Apple Music tracklist: {"errors":[{"id":"XXXXXX","title":"Missing Parameter","detail":"No mode supplied on the…
blackarcanis
  • 542
  • 1
  • 4
  • 23
1
vote
0 answers

iOS & Android: Using Apple Music API for commercial use?

I'm looking to use Apple Music API to search for songs and display them in a list (along with their artists). I'm unclear to whether it is legal to actually do so, with a commercial app. The reason I ask is because Spotify does not allow the use of…
Matt
  • 21
  • 3
1
vote
0 answers

How to get artist ID for all artists in Apple Music for a user

Using Apple Music API I was able to get all artists in my library: func getArtists(forToken musicUserToken: String) { var urlComponents = URLComponents() urlComponents.scheme = "https" urlComponents.host = "api.music.apple.com" …
Marcos Tanaka
  • 3,112
  • 3
  • 25
  • 41
1
vote
1 answer

Received Policy Notification: Apple Music API/MusicKit requirements

I received a message from Apple for many of my iOS apps. It says I use Apple Music in connection with advertising and they give me one week to resolve it. I do not use it maybe one of advertising libraries do but I have no idea how to check it. What…
Tibidabo
  • 21,461
  • 5
  • 90
  • 86
1
vote
1 answer

Swift Printing out genres in personal medial library

I am trying to print out a list of the genres in my personal library. I am running into a huge problem where I cannot get the actual names of these genres. The code I have is: // Initialization: let query = MPMediaQuery() let result =…
Jordan Heath
  • 114
  • 8
1
vote
0 answers

Apple Music play and pause delay

I have integrated Apple Music in project. When i play or pause it takes delay of 2-3 seconds to come in effect. For example if i pause song it pauses after 1-2 second. I am using following methods to play and pause. To Play :…
Jagdeep Singh
  • 2,556
  • 3
  • 18
  • 28
1
vote
1 answer

Apple API/SDK: requestUserToken without Swift/Objective-C?

I need to be able to retrieve user-specific data from Apple Music. After some searching, it seems the moethod to do this is requestUserTokenForDeveloperToken: Returns a user token that you use to access personalized Apple Music content. However,…
zerohedge
  • 3,185
  • 4
  • 28
  • 63
1
vote
1 answer

Can I filter out songs downloaded to device from Apple Music?

I have a MPMediaPickerController showing songs available on the device to use for sending to other users on my app. I've filtered out Cloud items, but I also want to filter out songs from Apple Music that have been made "available offline."…
1
vote
0 answers

Apple Music API - can't retrieve artists in search

I'm implementing the Apple Music API for my application. I have a 1000-1200 record of artist names in my database and I want to match with Apple Music. I'm using the search endpoint for that, but I couldn't retrieve any results for artists. Even the…
1
vote
1 answer

requestUserTokenForDeveloperToken return error - MusicKit get userToken

requestUserTokenForDeveloperToken return error if (@available(iOS 11.0, *)) { [self.cloudServiceController requestUserTokenForDeveloperToken:developerToken completionHandler:^(NSString * _Nullable userToken, NSError * _Nullable error) { …
1
vote
1 answer

Keep the app awaken in background when [MPMusicPlayerApplicationController applicationQueuePlayer] is used to play the music

With iOS 10.3 Apple released new APIs in MediaPlayer framework that brings more control/power to the developer that want to play music stored on Apple Music/iTunes Match. I’m talking about new applicationQueuePlayer and applicationMusicPlayer of…
1
vote
1 answer

Fetch recent playlist from itunes

I need recent playlist which we played from apple music or iTunes from iPhone. So, If anyone has a demo, link or tutorial then please share with me. I am following…
Mirant
  • 308
  • 2
  • 13
1
vote
0 answers

MusicKit - Personal Rating Delete / Update request gets HTTP 501

I can get the user rating for a song from the API as follows. As the API returns the success response, I understand my developer token and user token are in correct form and valid. $ echo $url …
Bahri Okuroglu
  • 178
  • 1
  • 7
1
vote
2 answers

StoreKit - format of clientToken for requestPersonalizationToken?

In the sparse Apple StoreKit Docs it mentions using a clientToken to request a personalizationToken from a device via requestPersonalizationToken. There is no accompanying documentation to describe what this token should be. I had assumed that it…
Moss Palmer
  • 1,814
  • 1
  • 15
  • 30