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
15
votes
2 answers

Opening Apple Music from my iOS app

Context: I'm currently developing an iOS app that integrates with Apple Music API. I'm able to search for songs and play them on my app. To respect their policies I've to allow the user to launch and play the song on Apple Music app. Shazam does…
antonioduarte
  • 655
  • 7
  • 19
11
votes
3 answers

How do I replicate iOS 10's Apple Music "Peek and pop action menu"

iOS 10 has a feature I would like to replicate. When you 3D touch an album in the Apple Music app it opens the menu shown below. However unlike a normal peek and pop, it does not go away when you raise you finger. How do I replicate this?
Austin E
  • 823
  • 1
  • 9
  • 22
10
votes
7 answers

How to check if Apple Music is installed on the user's device?

I am making a music app with swift. The app lets users play music through their Apple Music subscription via their Apple Music app. I am able to check whether the user has an Apple Music subscription via:…
David Chopin
  • 2,780
  • 2
  • 19
  • 40
8
votes
2 answers

Apple Music API Get Currently Playing Song

I am working on an application using the Spotify and Apple Music APIs. Spotify has an endpoint called /me/player/currently-playing that returns the logged in user's currently playing song. Is there an equivalent for the Apple Music API? I know the…
RangerRick
  • 266
  • 4
  • 17
8
votes
2 answers

How to Create a Apple Music User Token outside iOS

I am trying to let people like tracks, albums or playlists on Apple Music from a webpage. I understand the manual on this…
Reinier
  • 262
  • 3
  • 13
8
votes
1 answer

beginReceivingRemoteControlEvents not triggering events for Apple Music

I am playing Apple Music from my application , the apple music player code is as - -(void) submitAppleMusicTrackWithProductID: (NSString *) productID // productID in US is the last numbers after i= in the share URL from Apple Music { …
Anupam Mishra
  • 3,408
  • 5
  • 35
  • 63
7
votes
2 answers

How to get an ID for an Apple Music Playlist

I am currently making a swift app that creates a playlist for a user via MusicKit / the Apple Music API. It creates this playlist in the user's library and returns an ID of the format p.XXXXXXXX. I would like to then open up the iOS Music App and…
jeremyms
  • 319
  • 2
  • 11
7
votes
0 answers

iOS 9.3.2 Breaks MPMusicPlayerController

I'm trying to integrate Apple Music to my app, I managed to get it working flawlessly until this morning. After updating to iOS 9.3.2 nothing is the same: The permission system works the same (SKCloudServiceController) to retrieve the…
iMart1n
  • 71
  • 4
7
votes
1 answer

Apple Music URL Scheme

I need to know the URL Scheme of Apple Music to open a specific song. Up to now I was using the link like this: https://itunes.apple.com/us/album/monsieur-cousteau/id496076893?i=496076903&uo=4 That link, was working perfectly in iTunes Store, but…
Dani G.
  • 577
  • 8
  • 21
6
votes
3 answers

Obtaining a Library Playlists Artwork Apple Music API

I am currently trying to read all of a users Library Playlists. What I need are the following: Id,Name,Description,Songs and Artwork. The Endpoint "https://api.music.apple.com/v1/me/library/playlists?limit=100" returns the following response: { …
barbecu
  • 684
  • 10
  • 28
6
votes
1 answer

Apple Music API - How to get user identifier?

I am trying to retrieve the user's information after getting the Music Token from the Apple Music API. It seems that the /me endpoint is not available for queries other than the storefront (https://api.music.apple.com/v1/me/storefront). Problem is,…
6
votes
0 answers

How to detect the end of a song in MusicKit?

I am attempting to use Apple's Music Kit within my application to listen to music. My issue is that the first song that plays will continually repeat. The first song plays correctly by using the following code: let mediaArray =…
6
votes
0 answers

Apple Music API - which API should I use to search a song?

I'm trying to understand how Apple Music API works, and stuck on how to search a song and get its ID. I did some research on Google, and most people suggest using iTunes Search API. However, Apple Music API also provides its own search API. I tried…
P. Tsin
  • 435
  • 4
  • 14
6
votes
1 answer

Apple Music API, explicit content playback

I'm trying to use the new API from Apple, but when trying to play some songs using setQueueWithStoreIDs(storeIds: [String]) method I noticed I couldn't play all of the songs in my queue. Trying to understand the problem was painful since the new…
Arda Erzin
  • 63
  • 1
  • 3
6
votes
1 answer

Error when using -[MPMediaPlaylist addItemWithProductID:completionHandler:]

I'm trying to use the new Apple Music APIs from 9.3 to add a song to a playlist created by my app, without adding it to the user's library. Consider the productID 316654632, it's the song Lisztomania by Phoenix, in the US iTunes Store. Using the…
Jota
  • 149
  • 3
  • 9
1
2 3
13 14