IPhone App Button to go to the app store and provide feedback

I'm trying to set up an app where a user can click 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 like:


Is there a format error? or has something changed in iOS 5.0?

Is there an easy solution I am missing?


source to share

3 answers

The address itms-apps://...

only works on devices.

BTW, try Appirater , a utility that reminds iPhone users to view the app.



Have you tried this on a physical iOS device? If not, I think the problem might be that there is no AppStore in the iOS Simulator. Therefore, since the URL scheme says "itms-apps", the simulator cannot find the AppStore, so it does not open.



In my Applications, I used the following format (I mentioned it according to 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]];




All Articles