简体   繁体   English

无法链接到应用商店评论页面

[英]can't link to app store review page

i've tried to create a link to the app store from my app. 我试图从我的应用程序创建到应用程序商店的链接。 I found a lot of posts telling me to do it like this: 我发现很多帖子告诉我这样做:

 NSString* appID = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];\

 NSString* url = [NSString stringWithFormat: @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@", appID];

[[UIApplication sharedApplication] openURL: [NSURL URLWithString: url]];

When i click on the button linked to this code, i get redirected to the app store, but then a pop-up shows and tells me "can't connect to the app store" 当我单击链接到此代码的按钮时,我将重定向到应用商店,但随后出现一个弹出窗口,告诉我“无法连接至应用商店”

What am i missing? 我想念什么? is this method deprecated? 这个方法被弃用了吗?

found what the problem is : 发现问题所在:

NSString* appID = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];

doesn't retrieve the app id; 不检索应用程序ID; for that you must go to itunes connect 为此,您必须转到iTunes连接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM