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:
http://itunes.apple.com/us/app/mood-color-secrets-women/id495880078?ls=1&mt=8
Is there a format error? or has something changed in iOS 5.0?
Is there an easy solution I am missing?
+3
source to share
3 answers
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]];
0
source to share