Link to manage Play Store subscription
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.
Since this year's IO it is possible to use a deep link to link to your subscriptions:
https://play.google.com/store/account/subscriptions?sku=*yoursku*&package=*com.yourpackagename*
Simply open this URL with a regular intent.
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()
}
}
A user can view their subscriptions on the App store page now.
https://developer.android.com/google/play/billing/subscriptions#deep-link
"After users have purchased subscriptions, they can view the subscriptions and cancel them from the My Apps screen in the Play Store app or from the app's product details page in the Play Store app."
market://details?id=YOUR_APP_ID