Join Ron Buencamino for an in-depth discussion in this video Using SKStoreReviewController, part of Implementing In-App Purchases in iOS 11 with StoreKit.
- [Instructor] To show how to ask…for a review from within your app,…we're going to first go to IAPManager.swift.…Now scroll down over here to the bottom,…and we're going to mark off a section…for our review asking.…I'm going to create a function…called ask for a review.…In here, I'm simply going to call the process…that is found within SK Store Review Controller.…
Now that I have this call in here on line number 148,…we need to trigger it somewhere.…So I'm going to jump over to ViewController.swift,…and we're going to hop down into our view did load function.…In here, what I want to do is set a temporary delay…that's going to happen once the view loads.…And after that delay is hit,…we're going to go ahead and ask for a review.…
Okay, let's take a look at what I did here.…On line 39, I create a dispatch time interval…that's three seconds,…and what happens is, on line 40,…I dispatch a queue after that deadline time.…So it's going to delay three seconds,…and then ask for a review.…So now, let's go ahead and run our app,…
First, get an overview of StoreKit and the types of purchases you can offer, including consumable and non-consumable products and non-renewing and auto-renewable subscriptions. Next, learn how to configure new products for sale with iTunes Connect and display a storefront right within your app. Ron then shows how to request and process payments, and deliver users' purchases to their iOS devices. Plus, learn about restoring purchased content—a smart strategy for keeping your app rating high—and requesting reviews from users using the new SKStoreReviewController API, which doesn't require leaving the app.
- What is StoreKit?
- Creating products in iTunes Connect
- Displaying products in your storefront
- Requesting payments
- Receipt validation
- Delivering products
- Restoring purchased content
- Asking for app reviews