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

Swift MediaPlayer/MusicKit: How to play lossless audio?

Apple announced lossless audio for apple music users in 2021. With MediaPlayer and MusicKit, you can also play any song from the users apple music library. This playback works through a MPMediaItem, you can query one like this: @State private var…
Trevor
  • 580
  • 5
  • 16
0
votes
0 answers

The Java code that I run in the Flutter App uses or overrides a deprecated API

I forked this Flutter project and it is supposed to be executing a native Java code which is MusicKit Plugin. But when I run the project I get this error: Note:…
0
votes
0 answers

Apple Musickit Top Results only return 3 items

I've been trying to implement MusicCatalogSearchRequest with includeTopResults. It works. But topResults only returns 3 items. I tried with many different search terms and even compared the same search term with Apple Music app where it gives many…
Heshan
  • 913
  • 8
  • 30
0
votes
1 answer

can I have library items my app plays show up as recently played in the Music app?

My iOS app plays music from the user's library via MPMusicPlayerController.applicationMusicPlayer. It can either be from Apple Music or manually synced music files. Is there a way to have that music show up as recently played in the Music app?
Germán
  • 4,525
  • 3
  • 31
  • 37
0
votes
1 answer

Swift: Trying to get HTML response from MusicKit. Fails because of incorrect Authorization header

I'm new to Apple platform development, so hopefully I'm not missing anything obvious, but I can't seem to find anything on this. I'm trying to use Apple's MusicKit service to get the JSON object for a given song, using the song's ISRC in the…
0
votes
0 answers

Best practice for securing Apple Music private key when requesting user access to Apple music library

I'm using react-native-apple-music https://github.com/Lemonadd-UG/react-native-apple-music to request user access to their music library. It requires my Apple music private key to get the user's music token which I can then use to access their…
Hunter
  • 31
  • 4
0
votes
0 answers

Apple Music/Music Kit: how to get song IDs?

The Apple Music API provides a service to fetch a song via an identifier, as detailed in their documentation in this format https://api.music.apple.com/v1/catalog/us/songs/900032829 My goal is to pick songs at random, from an array of songs. My…
daspianist
  • 5,336
  • 8
  • 50
  • 94
0
votes
2 answers

MusicKit import for MacOS

Wanted to play around with MusicKit on MacOS now that we don't need to create JWT tokens manually anymore. But currently when I try to import MusicKit to a MacOS project, compiler is telling me MusicKit is not available when building for macOS.…
Rene
  • 136
  • 1
  • 7
0
votes
0 answers

This release is not compliant with the Google Play 64-bit requirement (Apple Music Kit)

I am using Apple Music Kit in my android application and while uploading signed APK to the google play store it is giving me an error: This release is not compliant with the Google Play 64-bit requirement. The following APKs or app bundles are…
Harsh Shah
  • 2,162
  • 2
  • 19
  • 39
0
votes
0 answers

How can I access the MediaPlayer functionality from another device?

I am playing music from the Apple Music app on device A and want to skip the song remotely from device B. My first idea was to save an auth token from device A to a database and call the API from device B through that token. How can I access the…
nicklbaert
  • 57
  • 2
  • 7
0
votes
1 answer

MPMediaItem array not printing song titles in SwiftUI List

I have a Swift project that prints a list of songs in a table view. Below is the basis of the current working code for retrieving and putting those songs in rows. Swift: var mySongs: [MPMediaItem] = [] func tableView(_ tableView: UITableView,…
ctm
  • 88
  • 1
  • 1
  • 10
0
votes
1 answer

ECDSA signature with C# and Bouncy Castle does not match MS ECDsa signature

I am trying to communicate with the Apple Music API from a Xamarin.Forms project. Due to the Microsoft ECDsa implementation not being available on Xamarin.Android and Xamarin.iOS I am trying to work around that limitation using the…
0
votes
1 answer

Apple's MusicKit JS library example runs fine when rendered by Node.js, fails with Django

For three hours, I've been scratching my head over this. Apple's MusicKit uses JWT tokens to authenticate. When I npm start this Node.js example project, I can generate the JWT token, and then authorize Apple Music and collect the user token in…
gwizzo
  • 49
  • 8
0
votes
1 answer

Apple Music API not letting me get User Token - Throwing Unknown Error

I am trying to create a very simple app using Apple's Apple Music API in Swift. To do this, I need to retrieve songs from Apple Music. I am trying to get a user token using this code …
Ali Hachem
  • 31
  • 2
0
votes
1 answer

Apple applicationMusicPlayer not playing type "LibrarySong" but does play "Song" type?

Am using Apple MediaPlayer framework and AppleMusicAPI to play songs in mobile app. API call (with search term parameter): https://api.music.apple.com/v1/catalog/{id}/search Successfully returns a Song type object that is playable with the…
dreloz
  • 1
  • 1