Post

Replies

Boosts

Views

Activity

Reply to Using MusicKit to retrieve playlists and contents of playlists
Following up on this thread, I can successfully load playlists using MusicDataRequest. For example I can see playlist returned with and id of "p.aJe0ME5I3eZQ84d" from my Apple Music account. Trying your code fetch the tracks of the playlist did not work out of the box. I had to modify it to var playlistRequest = MusicCatalogResourceRequest<Playlist>(matching: \.id, equalTo: MusicItemID(playlistId)), i.e. wrapping the returned playlist id to a MusicItemID. Is this correct? Because using the id this way, it results in the following error: [DataRequesting] Failed to perform MusicDataRequest.Context(   url: https://api.music.apple.com/v1/catalog/nl/playlists/p.aJe0ME5I3eZQ84d?l=en-GB&include=tracks&omit%5Bresource%5D=autos,   currentRetryCounts: [.other: 1] ) with MusicDataRequest.Error(   status: 404,   code: 40400,   title: "Resource Not Found",   detailText: "Resource with requested id was not found",   id: "4B4ETVMCUXDRBAJ5OCLJLAKLSU",   originalResponse: MusicDataResponse(     data: 159 bytes,     urlResponse: <NSHTTPURLResponse: 0x00000002829a78a0>   ) ). What am I doing wrong?
Topic: Media Technologies SubTopic: General Tags:
Jan ’22
Reply to Unable to present. Please file a bug.
Same issue here: ForEach(collections, id:\.objectID) { collection in         CollectionTile(collection: collection)  } does not work, or intermittently, throwing the error 'Unable to present, Please file a bug'. I can work around it by changing ForEach into a List but then the UI is not exactly what I want.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’21
Reply to ShazamKit supported for iOS apps that can run on Mac silicon?
Can someone please provide some feedback please. I am completely in the dark on how to get my app on Mac (as designed for iPad) when using ShazamKit. It used to work, but I can't get it to work since latest release of iOS.
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Jan ’25
Reply to Xcode 15: Core Data : No NSValueTransformer with class name XXX was found for attribute YYY on entity ZZZ for custom `NSSecureUnarchiveFromDataTransformer`
Also filed feedback, FB14091781 Sigh....
Replies
Boosts
Views
Activity
Jun ’24
Reply to Is getting artist artwork from the Apple Music REST API disallowed from posting to the app store?
I think using artwork in your app through the MusicKit API is completely fine; I am doing it in my app as well. What is definitely not allowed is using artist artwork in your App Store app page. My app got rejected once because of that and I had to come up with fake album covert artwork. Hope this helps.
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to Using MusicKit to retrieve playlists and contents of playlists
Following up on this thread, I can successfully load playlists using MusicDataRequest. For example I can see playlist returned with and id of "p.aJe0ME5I3eZQ84d" from my Apple Music account. Trying your code fetch the tracks of the playlist did not work out of the box. I had to modify it to var playlistRequest = MusicCatalogResourceRequest<Playlist>(matching: \.id, equalTo: MusicItemID(playlistId)), i.e. wrapping the returned playlist id to a MusicItemID. Is this correct? Because using the id this way, it results in the following error: [DataRequesting] Failed to perform MusicDataRequest.Context(   url: https://api.music.apple.com/v1/catalog/nl/playlists/p.aJe0ME5I3eZQ84d?l=en-GB&include=tracks&omit%5Bresource%5D=autos,   currentRetryCounts: [.other: 1] ) with MusicDataRequest.Error(   status: 404,   code: 40400,   title: "Resource Not Found",   detailText: "Resource with requested id was not found",   id: "4B4ETVMCUXDRBAJ5OCLJLAKLSU",   originalResponse: MusicDataResponse(     data: 159 bytes,     urlResponse: <NSHTTPURLResponse: 0x00000002829a78a0>   ) ). What am I doing wrong?
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Using MusicKit to retrieve playlists and contents of playlists
Many thanks for this. Can you also help with how to get a list of library playlists for the user, like you can with the Apple Music API endpoint: https://api.music.apple.com/v1/me/library/playlists?
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Unable to present. Please file a bug.
Same issue here: ForEach(collections, id:\.objectID) { collection in         CollectionTile(collection: collection)  } does not work, or intermittently, throwing the error 'Unable to present, Please file a bug'. I can work around it by changing ForEach into a List but then the UI is not exactly what I want.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’21