Issue
I am looking forward to opening a Google play dialog as you see on YouTube when you click on any app install ads. I already tried the steps from this link to open the play store from my Android app https://developer.android.com/distribute/marketing-tools/linking-to-google-play, but these steps open the play store app instead of in-app dialog like shown in the below screenshot. I already checked StackOverflow and there were a couple of similar questions asked but they are quite older so asking it again.
Solution
To all those wondering how is it possible to show this. TLDR you can't without support from Google.
The popup comes when you add extra param enifd with the app link to play store
For ex. intent://details?id=com.aranoah.healthkart.plus&inline=true&enifd=AMO2QMb52SseLfA21upm-hHtBTi4ekj6AaHc14FJPukdGkE3WL5_pWrxfL3m3lSmhAHhXZpLALwiPh6aTUOdtKjgAaWMet8NBtlmJkrfA44-9oau3Lyjud9gvkBQu2goXdqxts7gWvrCky_gBJIa-9RxYio2DHOc0wg5o2PbRbhxcmZtgMpIePs&gclid=Cj0KCQiAsqOMBhDFARIsAFBTN3ejj8e-8jcA0bbPoIQipj3502K_-o-UEO44kIO4iUUHBvHOVPrg4aIaApfJEALw_wcB&referrer=gclid%3DCj0KCQiAsqOMBhDFARIsAFBTN3ejj8e-8jcA0bbPoIQipj3502K_-o-UEO44kIO4iUUHBvHOVPrg4aIaApfJEALw_wcB&gref=EkUKPQoJCICyo4wGEMUBEiwAUFM3d6OPx77yNwDRts-ghCKmPfnTYr_6j5QQ7jiQg7iJRQcG8c5U-uDhohoCl8kQAvD_BwEYgdnLvgMiCBgFIAEwATgH#Intent;scheme=market;package=com.android.vending;end;
This enifd param contains gpId based some configuration in encrypted manner if you add this to applink and then try to fire applink from any of your app then you will see the bottomsheet. But if you remove this param it will again open the play store app.
Though the link is copied from Chrome so I am not aware what exactly is being passed under enifd param. Check with Google if you want to find out.
Answered By - Raj Suvariya
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.