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
4
votes
0 answers

Apple MusicKit Authorization errors with iOS 12 update

I'm using the Apple MusicKit in my app. I had the authorization setup correctly and everything was working fine for a long time. Recently since the update to iOS 12 I'm seeing these errors 2018-12-02 19:16:46.511567-0500 Project2[30649:3022463]…
virajd
  • 150
  • 1
  • 15
4
votes
0 answers

How to fetch all subscribed Podcasts and not just downloaded ones, locally

I'm building an import method from the native Apple Podcasts app into my own. So I've been using a predicate to fetch MPMediaItems of type Podcast from the local device, however, this (As shown below) only shows downloaded episodes and not shows:…
patrickjquinn
  • 288
  • 1
  • 15
4
votes
0 answers

DELETE/PUT in Apple Music API

Since the last API changes, we are no longer able to do DELETE/PUT requests on the Apple Music API. => Apple Music API Documentation So, we can't update a playlist details, delete a playlist, delete tracks in playlist, delete tracks in library...…
blackarcanis
  • 542
  • 1
  • 4
  • 23
4
votes
0 answers

Playing musicVideos within Our App using musicKit

I have gone through following link:- https://developer.apple.com/videos/play/wwdc2017/502/?time=362 I have also downloaded demo project from above mentioned…
Meet
  • 1,196
  • 12
  • 26
4
votes
4 answers

How to call Apple Music API and avoid 401

I am persistently getting 401 error when trying to call the Apple Music API. I am using a windows machine and below is the Python Code for it. import datetime import jwt secret = """-----BEGIN PRIVATE…
MSTR Prime
  • 41
  • 4
4
votes
1 answer

Detecting When An Apple Music Song Has Finished Playing

I'm writing an app that needs to enact an action when a song has finished playing. I'm using MPMusicPlayerController.applicationQueuePlayer() as my music player to play the user's apple music. I was wondering if there was a way I could detect when a…
4
votes
1 answer

Error getting a userToken for Apple Music SDK with JWT

I'm trying unsuccessfully to get a userToken for Apple Music SDK using the developerToken from JWT. I've used pelauimagineering/apple-music-token-generator and I could get a valid and static userToken. But apple recommend to make dynamic, so I'm…
GuiOS
  • 73
  • 9
3
votes
1 answer

What is the best way to support Apple Music and Spotify in iOS app?

I am looking to support Apple Music and Spotify in an iOS app (Swift specifically) and I was wondering what the best way to support would be? Should I just use MusicKit and Spotify iOS SDK and then make models to support data from both? If so, then…
Papi
  • 255
  • 1
  • 2
  • 13
3
votes
1 answer

Apple MusicKit play album by identifier doesn't work

I've created a button which takes a selected album's store id and puts it in a queue for the music player, but for some reason, it does not play and returns the following error: Failed to prepareToPlay error: Error…
Papi
  • 255
  • 1
  • 2
  • 13
3
votes
0 answers

Apple Music Kit unable to get proper Music-User-Token generated

Im creating a login with apple music feature on a PHP coded website, so far so good. Im able to login get the access_token from the user, im also able to get public track and playlist info using my encrypted developer token. But I would also like to…
Centarius
  • 61
  • 2
3
votes
1 answer

How to open Apple Music (iTunes) links in new Music app (MacOS Catalina)

I have a web app that uses the MusicKitJS together with Apple Music's API to display information about music releases. The behaviour since MacOS Catalina has changed due to the introduction of the Music app and removal of iTunes. Links like this…
zerohedge
  • 3,185
  • 4
  • 28
  • 63
3
votes
0 answers

MPMediaPickerController with MPMediaTypeMusic "for you" or "browse" is empty

I am using the MPMediaPickerController to playback my own files (locally or purchased in the cloud). This is the code i use musicPickerView = [[UIView alloc] initWithFrame:fullScreenRect]; musicPickerView.alpha = 0.0f; musicPicker =…
3
votes
1 answer

MPMusicPlayerController fails to play from Apple Music

I'm trying to play songs from Apple Music and it is failing with the following logs: 2019-09-26 00:15:57.790999+0200 [1886:463973] [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=9 "(null)"" 2019-09-26 00:15:57.791129+0200…
frangulyan
  • 3,580
  • 4
  • 36
  • 64
3
votes
0 answers

MPMusicPlayerController applicationMusicPlayer doesn't play some songs

I don't know what the issue is, I can't play any of the songs for Adele Essentials, https://itunes.apple.com/us/playlist/adele-essentials/pl.efaeab71d9cd4e079d9d1097c3b6b525 420075084 1051394215 420075185 1051394219 420075145 1051394224 1399800382…
Wael
  • 489
  • 6
  • 19
3
votes
1 answer

MPMusicPlayerControllerMutableQueue insert an Apple Music song not working

So I have been trying to use the MusicKit APIs for a few days now. I have been attempting to use the MPMusicPlayerApplicationController and MutableQueue APIs. I have queue initialized already using setQueue(with: [String]) with an array of store…
1
2
3
11 12