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.
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()
}
}
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With