0

Following this question we can get a JSON response from the iTunes Search API to direct users to the trackViewUrl. The answer suggested appending &app=itunes to have the iOS device open the URL in the iTunes Store instead of Apple Music, but my test suggests that this doesn't work and Apple Music is still opened.

For instance, the first item of the result of:

https://itunes.apple.com/search?term=pink+floyd%20high%20hopes

shows a trackViewUrl of:

https://music.apple.com/us/album/high-hopes/1067444712?i=1067444898&uo=4,

with the appended request is:

https://music.apple.com/us/album/high-hopes/1067444712?i=1067444898&uo=4&app=itunes

However, this link opens Apple Music on an iOS device.

Is there a way to open the iTunes Store instead? Or another way to open the iTunes Store to a specific track? I need DRM free tracks.

Steve M
  • 9,296
  • 11
  • 49
  • 98

1 Answers1

0

The correct way of doing this now is with StoreKit.

Steve M
  • 9,296
  • 11
  • 49
  • 98
  • I don't undestand your answer but it is marked as best answer. Can you develop your purpose? You want to say he should use Store Kit for make in app purchase at least redirect user to iTunes Store ? But he can't do this because he has not the product – Ghiggz Pikkoro May 18 '23 at 16:20