Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Link to manage Play Store subscription

Tags:

On iOS, we can use https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/manageSubscriptions, and it will open the native subscription manager.

Is this possible to do this with the Play Store, or is there any other possible way to open the native subscription manager for Google Play Store?

Same as this question, but for Android: Link to app manage subscriptions in app store.

like image 278
Caleb Pitman Avatar asked May 06 '16 22:05

Caleb Pitman


2 Answers

I use Action view to open Google Play Store -> Account.

    private fun openPlaystoreAccount() {
        try {
            startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/account?utm_source=google&utm_medium=account&utm_campaign=my-account")));
        } catch (e: ActivityNotFoundException) {
            showToast("Cant open the browser")
            e.printStackTrace()
        } 
    }

Update:

Google released a new deep link, where it will take users directly to your app manage subscription page. You need two things SKU and your app package name.

Example URL:

https://play.google.com/store/account/subscriptions?sku=yoursku&package=com.yourpackagename

Sample Code in Kotlin:

 private val packageName = "com.mydomain.myapp"
 private val sku = "mySku"

 private fun openPlaystoreAccount() {
     try {
         startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/account/subscriptions?sku=$sku&package=$packageName")))
     } catch (e: ActivityNotFoundException) {
         showToast("Cant open the browser")
         e.printStackTrace()
     }
 }
like image 145
Sai Avatar answered Sep 28 '22 04:09

Sai


I could not find out how to link to the subscriptions page for a specific app. But the url to go to the subscriptions page is: https://play.google.com/store/account/subscriptions. This url will open in the Play Store app when you're on Android.

like image 29
Kevin van Mierlo Avatar answered Sep 28 '22 04:09

Kevin van Mierlo