How to build a link on certain song in Play Store from my application like in Shazam

61 Views Asked by At

For example, I have Artist Name and Song Name in my application and I want to be able to navigate the user to Play Store app to this certain song, where he can buy it. Shazam and SoundHound have this functionality and I would like to know how they achieve that.

I know that you can build search query like this: market://search?q=

But this is not navigating me to the certain song page, even if I will type artist name + song name in the query. Is it even possible to achieve this functionality?

1

There are 1 best solutions below

3
On

If you do know specific item that needs to be purchased, than you can use this:

market://details?id=123456

Otherwise you are stuck with

market://details?q=...