Asking Customers for Ratings and Reviews from inside the app in iOS

From iOS 10 (10.3 to be precise), apple made it possible for the developers to ask for rating the app from inside the app itself. This is possible for us through SKStoreReviewController API. Let’s see what it was before and what it will be from now.

Abhimuralidharan

--

on a count of 1 to 10 , what would be your rating for this car 😵

Before iOS — 10.3 ( Even now we can do this :p )

If you want the user to rate the app, we normally redirect them to the appstore and the user can enter the rating there. We use the openUrl method to open the appstore.

Example:

@IBAction func rateUsButtonClicked(_ sender: Any) {rateApp(appId: “id1147613120”)}fileprivate func rateApp(appId: String) {openUrl(“itms-apps://itunes.apple.com/app/” + appId)}fileprivate func openUrl(_ urlString:String) {let url = URL(string: urlString)!if #available(iOS 10.0, *) {UIApplication.shared.open(url, options: [:], completionHandler: nil)

--

--