Questions tagged [apple-musickit]

The MusicKit framework allows iOS apps to play a user's Apple Music & local music.

Introduced with iOS 11, MusicKit on iOS lets users play Apple Music and their local music library natively from third party apps and games. When a user provides permission to their Apple Music account, an iOS app can create playlists, add songs to their library, and play any of the millions of songs in the Apple Music catalog. If the app detects that the user is not yet an Apple Music member, you can offer a trial from within your app.

169 questions
9
votes
0 answers

How can I add Apple MusicKit to a React Native app?

How can I implement Apple MusicKit in a React Native app, including Apple authentication?
Wang90925
  • 142
  • 6
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
1 answer

Playing (non library) Apple Music content - request fails

I'm trying to play an album, using the following code… let predicate = MPMediaPropertyPredicate(value: "1459938538", forProperty: MPMediaItemPropertyAlbumPersistentID) let iCloudPredicate = MPMediaPropertyPredicate(value: true, forProperty:…
Ashley Mills
  • 50,474
  • 16
  • 129
  • 160
7
votes
2 answers

SSAccountStore: Unable to get the local account. error = Error Domain=SSErrorDomain Code=100

I am having trouble getting access to the users Apple Music. The error I am getting is [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=9 "(null)"" 2019-02-04 19:14:37.250467+0900 SSAccountStore: Failed to fetch the backing…
Tech IRIS
  • 113
  • 9
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
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
0 answers

Why am I getting an error while trying to access iTunes library?

I need to access to user's iTunes library. I want to list all songs besides playlists and albums that a user has purchased from iTunes Store or add to his library from Apple Music or synchronized and loaded from its computer. I use MPMediaQuery to…
amone
  • 3,712
  • 10
  • 36
  • 53
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
2 answers

I am try to get user token for apple music API, i have already generated valid developer token from python terminal commands

I am using first time apple music api in my IOS app. I have already generate developer token with the help of python commands. i am getting error every time when request for the user token "An error occurred when requesting user token: The operation…
Pankaj Sonava
  • 519
  • 4
  • 20
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
5
votes
2 answers

Do Apple Music User Tokens expire?

I'm working on integrating Apple Music into my web app. I let users authenticate once, using Apple's MusicKit JS. However, I'm curious if the resulting Music User Token expires. I'm storing this token in a database, but I need to know if I can use…
Niels Kersic
  • 830
  • 1
  • 9
  • 24
4
votes
1 answer

Is it possible to get track previews using MusicKit

I want to integrate Apple Music into my app, however I don’t want people to have to log in to Apple Music. I just want to get the preview tracks of songs. Is that possible?
Tometoyou
  • 7,792
  • 12
  • 62
  • 108
4
votes
0 answers

Fade out downloaded songs from Apple Music

How can I make downloaded Apple Music songs fade out (volume decrease steadily over a few seconds)? Recently I've been getting into trying to get Apple Music songs to play in my app. I've gotten them to play through the system/application music…
4
votes
1 answer

Using MusicKit JS from Nodejs

MusicKit JS is a javascript library that allows third-party developers to build web clients for apple music. This allows access to the otherwise fully-closed apple music ecosystem. I am wondering if there is a way to use this library from nodejs to…
David
  • 3,787
  • 2
  • 29
  • 43
1
2 3
11 12