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

Apple MusicKit JS: how to play full song, instead of preview?

o/ Configured app, enabled Apple Music subscription, authorized that user in my web app, and whenever I play a song from media queue, I hear only preview playing, not the full song. When I authorize the same way on Apple Music webiste, it plays full…
Aleksandr Makov
  • 2,820
  • 3
  • 37
  • 62
2
votes
1 answer

Issue Playing Apple Music Song with playbackStoreID

I am trying to play an individual apple Music song using a playbackStore Id but whenever I attempt to play it I get this error The user is properly authenticated and the playback store id seems to be valid. I was wondering if anyone else is having…
2
votes
0 answers

401 - Unauthorized Error is coming in apple music api after generating the developer token

I am trying to access API of Apple Music API (https://developer.apple.com/documentation/applemusicapi). After creating the JWT developer token, when i try to access the API, An error of 401 - Unauthorized occurs. I am doing it in the following way…
rajat_bt
  • 21
  • 3
2
votes
1 answer

Connecting to Apple Music

So Im trying to connect to Apple Music from an iOS device using a react native application, There is an API present for doing the same but I need to call a function from the storekit framework ? to make personalised requests. Apple Music API :…
Epiczzor
  • 377
  • 2
  • 13
2
votes
2 answers

How do I create a personalized Music User Token in Apple Music?

I'm attempting to access my personal Apple Music library using the MusicKit API. I'm building a Python web application that uses it. I wasn't sure how I could generate a personalized Apple Music User Token. The process appears to be a tad more…
Mukul Ram
  • 356
  • 4
  • 14
2
votes
0 answers

Apple Music kit User token Issue iOS 11 Swift 4

I'm trying to get familiar with Apple's Music Kit SDK using the sample Xcode project 'Adding-content-to-Apple-Music' that Apple provides I'm running into this issue where the sample is not able to get hold of a usertoken. I made sure I have the…
virajd
  • 150
  • 1
  • 15
2
votes
1 answer

Apple MusicKit - Playlist creation and editing via the Apple Music API

I have recently been using the new Apple MusicKit functionality. I've got a Developer Token and Music-User-Token and I can run the test code provided by Apple. I want to try and do a few more things but the documentation doesn't seem to cover…
scgough
  • 5,099
  • 3
  • 30
  • 48
1
vote
1 answer

Automating import of songs from a list into iTunes?

All my music is kept in a folder on my external HD called 'General Music'. I have a list of selected songs in a text file called 'SL'. I really want to import them into Music into a playlist called 'SL playlist'! The list 'SL' is tab-separated and…
tardy pigeon
  • 225
  • 6
  • 18
1
vote
2 answers

Need help in Apple MusicKit integration

I am developing and IOS app to integrate MusicKit to get User songs from their Music Library. Since I am new to Swift and Native IOS development, it is quite difficult for me to understand the Apple Documentation. I have able to get users Album,…
1
vote
1 answer

Background Audio mode with MPMusicPlayerController.systemMusicPlayer

I'm working on an iOS app that uses MPMusicPlayerController.systemMusicPlayer to play songs from Apple Music to the user. My app should be able to append songs to the Music player's queue based on messages it receives from a server. I have this…
cbwi
  • 33
  • 1
  • 6
1
vote
1 answer

Apple MusicKit SDK in Android

I have been trying to add Apple MusicKit auth SDK to an android app, I have added the AAR provided by apple and the necessary step to initialize the auth flow, but the SDK just redirects me to the google play store listing of apple music, I do have…
ibrhm117
  • 387
  • 3
  • 25
1
vote
0 answers

Playing apple music from AVFoundation for visualization

I am working on a music app where I can do some sound analysis, my end goal is to integrate Apple Music API in my app where users can search songs. When the song is played I want to show a type of soundwave/spectrogram. For sound visualization, I…
Faisal Jaffri
  • 37
  • 1
  • 12
1
vote
0 answers

Error when creating MPMusicPlayerPlayParameters from tracks uploaded to iTunes

I'm using the Apple Music API to get albums, tracks, playlists, etc from the user's music library. I would like to prepend these songs to the systemMusicPlayer's queue. This works great for songs that are from the catalog and a catalogID. However,…
Jacob Cavin
  • 2,169
  • 3
  • 19
  • 47
1
vote
1 answer

How to get system music queue from MusicKit?

I'm using MusicKit to build an iOS app that manages the queue of Apple Music. I am able to get the current item in the queue by: SystemMusicPlayer.shared.queue.currentEntry And I can subscribe to changes in the queue with: cancellable =…
Pranav Wadhwa
  • 7,666
  • 6
  • 39
  • 61
1
vote
1 answer

How to open Browse tab in Apple Music app from our app?

I am able to open Apple's default Music app using following code: if let appleMusicUrl = URL(string:"music://") { UIApplication.shared.open(appleMusicUrl, options: [:]) { done in } } What I want is that whenever I switch to Music app it opens…
N4SK
  • 700
  • 8
  • 25