Link to app manage subscriptions in app store

2019-03-08 10:45发布

Currently with In app purchase the only way to cancel an auto-renewing subscription is to do the following with the device:

Settings > Store > View my account > Manage my subscription

Is it possible programmatically to link directly to the Manage my subscription page in the app store? I know I can open the app store via something like

NSURL *url = [NSURL URLWithString:@"itms-apps://itunes.apple.com"];
[[UIApplication sharedApplication] openURL:url];

I have seen other apps do this but I can't seem to figure out how.

8条回答
相关推荐>>
2楼-- · 2019-03-08 11:07

You can achieve this in Swift using the following code -

let url=NSURL(string:"https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/manageSubscriptions")

UIApplication.sharedApplication().openURL(url!)

Swift 3

let url = URL(string:"https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/manageSubscriptions")
UIApplication.shared.openURL(url!)
查看更多
来,给爷笑一个
3楼-- · 2019-03-08 11:12

use this link to skip past safari and right to the screen in the appstore:

itmss://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/manageSubscriptions

have fun

查看更多
登录 后发表回答