How to get permission to open google play install modal

jasontran08123

New member
Feb 10, 2024
1
0
1
Visit site
I'm looking to open the google play install modal instead of opening up google play store app like this for my own app:
igpJW.jpg
However, looking online [1][2], it seems that you need permission from google to do so for your app?

And deducing from source 2, I believe the code would looks something like this:

val intent = Intent(Intent.ACTION_VIEW).apply { data = Uri.parse(packageName) component = ComponentName("com.android.vending", "com.google.android.finsky.activities.InlineAppDetailsDialog") } context.startActivity(intent)

But the above code does not make the modal show up.

I'm wondering if anybody in this forum has any luck getting the dialog to show up or know the best person from the Android Development team to ask for access.

Thanks in advance!
 
Last edited:

Forum statistics

Threads
943,201
Messages
6,917,782
Members
3,158,874
Latest member
dxter