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
1
vote
3 answers

How to get same track/song from Spotify on Apple Music and vice versa?

I'm building a simple app, where users can share the song they're listening with friends. If the user is a Spotify subscriber and his/her friend is an Apple Music subscriber, and the Spotify user is sharing the song, how can I search for the same…
GuiOS
  • 73
  • 9
1
vote
1 answer

AppleMusicKit SDK / Sample Project - UserToken issue

I'm currently experimenting with the Adding-Content-to-Apple-Music code found here: https://developer.apple.com/musickit/ I'm using: XCode 9 beta 2, iOS 11 (iPhone 5s) I have a developer token (which works when I query the Apple Music API searching…
scgough
  • 5,099
  • 3
  • 30
  • 48
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
1 answer

Having trouble with MusicKit sample app provided by Apple

I am trying to build "Adding Content to Apple Music”, Music Kit sample app provided by Apple, on Xcode 9 beta 3. However I am having 4 errors like this : three “Ambiguous use of 'play()’” errors and one “Ambiguous use of 'pause()’” Please tell me…
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
0
votes
1 answer

How to create voiceovers with the synthesizer and Musickit?

My SwiftUI app is a workout app that uses the voice synthesizer to voice instructions over music played from local files using AVAudioPlayer. That player lets me lower the music volume so users can hear the voice. Many users want to play Apple Music…
Todd Hoff
  • 712
  • 5
  • 12
0
votes
1 answer

Apple MusicKit JS authorization method doesn't resolve

I'm building a Django application where I'm using Apple's MusicKit JS to authorize users and get their music library songs. I've correctly set up the MusicKit configuration in my HTML, and I am just doing this locally for testing purposes right…
0
votes
0 answers

Apple Music API Assistance

I am creating a django app that allows you to authenticate spotify and apple music to get a list of top tracks and artists. I have configured spotify perfectly and that is all set. Apple Music is giving me a headache I have tried so many things and…
0
votes
1 answer

Cannot use instance member 'searchQuery' within property initializer; property initializers run before 'self' is available

Newer to SwiftUI coding, and can't seem to figure out this whole initializer thing. I keep getting this error when putting a variable into my API call. I'm trying to get the values of a TextField to be what the term the API calls for. This is…
Boomarov
  • 29
  • 4
0
votes
0 answers

unauthorized request in integration with Apple Music API

I'm currently facing an issue with the integration of the Apple Music API in my application. I've followed the documentation and guidelines provided by Apple, but I'm encountering problems with authentication and parsing the Apple Music track…
fun lab
  • 29
  • 3
0
votes
2 answers

Is it possible to embed a "Now Playing" Apple Music player tied to my personal Music account on my html website?

This question was previously asked on Ask Different. I would like to write a widget which, when my personal Apple Music is currently playing, displays the track name and artist on my website to any visitors. Linking to the track in Music would be…
Eric
  • 1
  • 2
0
votes
1 answer

AppleMusicKit library for Android

I am developing an android application form AppleMusicKit. I have fetched user playlist and albums using api's. But now i am trying to play a song using code val tokenProvider = object : TokenProvider { override fun…
Muhammad
  • 23
  • 1
  • 6
0
votes
1 answer

How to understand a playlist is an editable one in MusicKit? (iOS 16)

How can I only retrieve playlists that are editable? Or in other words how can I retrieve playlists that are only created by the user? We can get the playlists of the user by the following code block: var request =…
0
votes
1 answer

Is it possible to use Apple Music's MusicKit SDK to play user's own station?

I'm trying to allow user's to play user's own station in my app. But after some research, I couldn't figure out whether it's achievable. As shown below, I want this particular station which Apple Music generated for the user. Does anyone know if…
Legolas Wang
  • 1,951
  • 1
  • 13
  • 26