Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In-App review feature in iPhone App

I have recently seen in some Apps that review and rating (with 5 stars) can be integrated into the app. Does anyone have an idea how this is done? e.g. with a http request?

More specific: Can I create a view in my App with a UITextField and a Button, so that when the user writes his review in the textfield and click send, the review should be posted to the "Customer Reviews" in the App Store? and the rating should also be done inside the App similarly.

like image 481
boreas Avatar asked Jun 02 '10 13:06

boreas


3 Answers

Yes, I did this with my own app. I have a rating button that hits the following method on click:

- (IBAction) reviewPressed: (id) source { 
NSString *str = @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=341086403"; 
   [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
}

You will need to replace the ID in the URL with your own App ID. For new apps, this presents you with a chick-and-egg problem - you don't have an ID until the App goes live.

like image 82
Chris Garrett Avatar answered Oct 14 '22 01:10

Chris Garrett


You can get your application ID by going in the process of submitting an app but choose to upload the app binary later. You will then get the app ID and thus add it in your code.

like image 28
Yoda Avatar answered Oct 13 '22 23:10

Yoda


I think its late but this is the best solution. You can use below url to directly send user to write a review page on App Store. Just need to replace application id.

itms-apps://itunes.apple.com/gb/app/id1136613532?action=write-review&mt=8

Example :

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps://itunes.apple.com/gb/app/id1136613532?action=write-review&mt=8"]];

Here My Application Id is 1136613532. You can replace it with yours. Tested in iOS 10.3

like image 2
Nilesh_iOSDev Avatar answered Oct 14 '22 01:10

Nilesh_iOSDev