Asking person to charge or evaluate app in iOS – Swift Tutorial – iOSTutorialJunction







On this submit, we’ll find out how we will use iOS sdk Storekit framework to ask for app retailer ranking. With the assistance of SKStoreReviewController we will present person a pop as much as charge our iOS app, that’s too with out leaving the app. Earlier, we open the app retailer app and ask person for app ranking. So allow us to begin utilizing Storekit framework to let person ask for app retailer ranking.

Issues to remember whereas including app ranking pop up utilizing SKStoreReviewController

  1. App ranking alert will probably be proven 3 instances throughout a interval of one year.
  2. Don’t set off the app ranking alert on a button click on, as a result of it could or could not present the alert.
  3. App icon is managed by SKStoreReviewController, and fetched out of your app element on iOS app retailer.
  4. SKStoreReviewController is accessible in iOS 10.3 and above.

Steps to point out app ranking alert in iOS utilizing SKStoreReviewController

Step 1: Import StoreKit framework

Step 2: Open your swift class, the place you need to implement this app ranking alert. Create a operate to request evaluate pop up usingSKStoreReviewController class. Under is the code for asking app ranking pop up.

import UIKit
import StoreKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        // Do any extra setup after loading the view.
    func requestAppReview() {
        if #out there(iOS 14.0, *) {
            if let scene = UIApplication.shared.connectedScenes.first as? UIWindowScene {
                SKStoreReviewController.requestReview(in: scene)
        } else {

Since requestReview is deprecated in IOS 14.0 and onward. So we’ll use, requestReview(in: scene) operate launched after iOS 14.0 and onward. That’s it and we have now applied app ranking pop up in our iOS app. You will notice a pop up in your app like this (please ignore the app icon because it’s taken from app that’s already on iOS app retailer).


Share this


What companies are using big data analytics

What do companies use big data for? What companies are using big data analytics. There are a multitude of reasons companies use big data, but...

How to use big data in healthcare

What is data quality and why is it important in healthcare? How to use big data in healthcare. In healthcare, data quality is important for...

How to build a big data platform

What is big data platform? How to build a big data platform. A big data platform is a powerful platform used to manage and analyze...

Recent articles

More like this