开发者

In-app Review Link

I am trying to link directly from my app to the review page of an app.

This works perfectly with some of my App ID's, like this one [375031865]:

NSString *reviewURL = @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=375031865&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software";
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:reviewURL]];

This also works (Same APP ID, different link format):

NSString *reviewURL = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=375031865";

But does not work with other App ID's, like this one [392551011]:

NSString *reviewURL = @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserRev开发者_如何学编程iews?id=392551011&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software";
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:reviewURL]];

OR:

NSString *reviewURL = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=392551011";

I have no idea how the same exact link with a different APP ID in it will work for some apps but not others. The error that comes up is "Cannot connect to iTunes Store"

Any ideas? Thanks!


for 392551011 = The DumDumb Exam HD

try:

NSString *reviewURL =
 @"itms-apps://itunes.com/app/thedumdumbexamhd";

Entering the above URL into Safari on the device will take me to the App Store page. The URL string is the app name taken from the URL:

http://itunes.apple.com/us/app/the-dumdumb-exam-hd/id392551011?mt=8

then converted into lower case and the spaces and the dashes removed.


You should carefully find out your app ID! Sometimes it differs for desktop and mobile iTunes.

I used iTunes (copy URL) way and stuck with "Cannot connect to iTunes". It returned irregular app id!

So for me the answer is to check app id in iTunesConnect or here: http://itunes.apple.com/linkmaker/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜