Mood ColorSecrets
Mood ColorSecrets

Reputation: 31

iPhone App Button To Go To App Store and Leave a Review

I am trying to set up app where user can touch a button and go to the App Store to leave a review. I am using iPhone simulator 5.0 and I keep getting the address is invalid.

I am using this format:

-(IBAction) leaveReview {
    NSString *reviewURL = @"itms-apps://itunes.apple.com/us/app/mood-color-secrets-women/id495880078?ls=1&mt=8";
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:reviewURL]];
}

The address works in Safari as:

http://itunes.apple.com/us/app/mood-color-secrets-women/id495880078?ls=1&mt=8

Do I have a format error? or Is something changed in iOS 5.0?

Is there an easy solution I am missing?

Upvotes: 3

Views: 615

Answers (3)

fannheyward
fannheyward

Reputation: 19267

The itms-apps://... address is only works on devices.

BTW, try Appirater, a utility that reminds your iPhone app's users to review the app.

Upvotes: 4

Old McStopher
Old McStopher

Reputation: 6349

For my Apps, I've used the following format (I put it in terms of your example.)

// Where 123456789 is the App ID
NSString *reviewURL = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=123456789";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:reviewURL]];

Upvotes: 0

kp_
kp_

Reputation: 123

Have you tried this on a physical iOS device? If not, I think the issue may be that the iOS Simulator does not feature the AppStore. Therefore, since the URL Scheme says "itms-apps", the simulator is not finding the AppStore, so it will not open.

Upvotes: 2

Related Questions