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
0
votes
1 answer

How to fetch a song from Apple Music without subscription?

I am new to the Apple Music API and MediaPlayer frameworks... I am simply trying to fetch songs from a search query, from Apple Music API, BUT, importantly, without the users need to have an Apple Music subscription. I have seen countless apps being…
loveSO123
  • 11
  • 2
0
votes
0 answers

Ionic MusicKitJS in App no authentification possible

I tried to authorize a user in my App with the normal AppleMusic login popup. music.authorize().then(()=>{ //do something } In the Webversion there poped up the Apple login form. But when I compile the App and run it on a device i think the…
0
votes
1 answer

Having trouble returning a user token from StoreKit as a string

import StoreKit class AppleMusicAPI { let developerToken = "ABC123" func getUserToken() -> String { var userToken = String() SKCloudServiceController().requestUserToken(forDeveloperToken: developerToken) { (receivedToken, error) in …
Shpigford
  • 24,748
  • 58
  • 163
  • 252
0
votes
0 answers

Cannot identify problem when requesting musickitusertoken, curl requests also do not work

I am getting this error when requesting a user token with Music Kit: Error Domain=SKErrorDomain Code=7 "(null)" UserInfo={NSUnderlyingError=0x281e94a20 {Error Domain=SSErrorDomain Code=109 "(null)" UserInfo={NSUnderlyingError=0x281e965e0 {Error…
0
votes
0 answers

How can I make a hierarchy for Apple Music API responses?

I'm trying to use classes, structs, and Decodableto make a response hierarchy for easy and automatic decoding of Apple Music API response. The Apple Music API response objects are kind of confusing though, and I'm not sure how to make a structure…
Tyler Cheek
  • 327
  • 2
  • 14
0
votes
1 answer

Apple Music API Limitation

I am planning to use the Apple Music API (Apple Music Catalog) to search through songs in my app. By reading the docs and stack overflow I know that there is a rate limit however I am wondering if this limit affects all users using the app or per…
Satsuki
  • 2,166
  • 5
  • 17
  • 33
0
votes
1 answer

Getting a USER_CANCELLED token error while trying to authenticate using Apple MusicKit SDK

I'm trying to interface the Apple Musickit SDK to my android app. I was able to get the authentication working initially. But I'm getting a USER_CANCELLED token error on my phone/device every time I try to connect. I'm getting the same error now…
0
votes
2 answers

Apple MusicKit JS: Why Do All Images for Music I Purchased Return 404s?

I've made an Apple Music player in my browser using MusicKit JS. I can view and play songs from my library, but the album art for any music I've purchased (rather than uploaded myself from a CD or other media source) returns a 404. So, for example,…
Choylton B. Higginbottom
  • 2,236
  • 3
  • 24
  • 34
0
votes
1 answer

Get Shuffled Tracks from Media Player

I want to get the queue from the Media Player. I believe that I can't read the queue though (is this correct?) and that I can only get the queue when I set it, like when I select a certain playlist to play. However I'm struggling to get the shuffled…
Jack Vanderpump
  • 216
  • 2
  • 16
0
votes
3 answers

Creating a Playlist for an Apple Music User

I've created an app in React Native which allows a user to search for songs, which uses the Apple Music API. So far, so good. For the next step. What I want to do is use the songs the user has searched for, and let them save them as a playlist in…
0
votes
1 answer

how to avoid Cross-Origin Request Blocking in NW.js

I am trying to create an NW.js app that uses Apple's MusicKitjs API. MusicKit pops up an Auth window when you go to login via the standard "login to Apple Music" button. That looks like this in my app: Eventually it makes a request to apple.com…
0
votes
1 answer

Mac: How to remove Apple Music OAuth app permissions

An app ("My Special App") has Apple Music OAuth permissions to my account. From my desktop (Apple Mac OS)... how do I remove these permissions so that Apple's MusicKit JS prompts me again for authorization?
daleyjem
  • 2,335
  • 1
  • 23
  • 34
0
votes
1 answer

MPMusicPlayerController skips to next song after continuing playback

I am using the MPMusicPlayerController to play songs from Apple Music. I am periodically (every several seconds) changing the song queue using setQueue(with: MPMusicPlayerStoreQueueDescriptor(storeIDs: ids)) I don't have any problems during music…
0
votes
1 answer

MusicKit gets stuck on the loading screen when trying to login with Apple Music (for media contols)

I'm trying to use Apple's official MusicKit SDK for Android, I downloaded their example project for Android from here, and in the R.string file I replaced the JWT placeholder with my actual JWT token (which works for me with Apple Music Web API) and…
123
  • 127
  • 3
  • 18
0
votes
1 answer

How to get a Catalog Playlist id for Apple Music API?

I am currently developing a 3rd-party client for Apple Music on iOS devices, but got stuck when trying to fetch artworks for catalog playlists. According to Apple Music API, "Get a Catalog Playlist", we may fetch a playlist by using its identifier…
TonyTang
  • 11
  • 2