mau*_*dem 22 android in-app-billing google-play google-play-services in-app-subscription
我一直在阅读这个网站:http: //developer.android.com/google/play/billing/billing_subscriptions.html 因为我读到"目前,应用内结算API不支持从内部以编程方式取消订阅购买应用程序",我想将用户重定向到此页面以管理自己的订阅.
我无法找到如何从应用程序打开订阅页面.我正在考虑打开它像外部链接:Intent browserIntent = new Intent(Intent.ACTION_VIEW,Uri.parse(" http://www.google.com ")); startActivity(browserIntent); 但我甚至不知道我需要放入的链接... -_-
在此先感谢您的回答!:)
mau*_*dem 27
好的,所以我没有收到更好的答案(实际上......根本没有答案......).对于可能研究答案的其他人来说,这是我的:
Intent browserIntent = new Intent(Intent.ACTION_VIEW,
Uri.parse("https://play.google.com/store/account/subscriptions"));
startActivity(browserIntent);
Run Code Online (Sandbox Code Playgroud)
注意:似乎market:不推荐使用该语法,并且Web意图会自动转发到PlayStore应用程序.
在Google io 2018上,他们宣布了此链接
https://play.google.com/store/account/subscriptions?sku=XXX&package=YYY
Run Code Online (Sandbox Code Playgroud)
只需替换sku和包
| 归档时间: |
|
| 查看次数: |
2591 次 |
| 最近记录: |