How to get to “Manage Subscriptions” from my app

元气小坏坏 提交于 2019-12-21 21:39:41

问题


Is there any method to get to Manage Subscriptions in settings by clicking a button from my app??


回答1:


There is no way to access the settings app from inside a sandboxed app -- i.e. any apps but Apple's -- without using a private API.




回答2:


you can open Subscription section of AppStore by opening this link in iphone/ipad safari:

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

or simply use this code:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/manageSubscriptions"]];

Doing this will first open safari, then will redirect it to Appstore subscriptions.

EDIT:

Replace https with itms-apps will open subscriptions directly

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/manageSubscriptions"]];


来源:https://stackoverflow.com/questions/6707377/how-to-get-to-manage-subscriptions-from-my-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!