Join Ron Buencamino for an in-depth discussion in this video What you should know, part of Implementing In-App Purchases in iOS 11 with StoreKit.
- [Instructor] Before we get started, let's go over a few assumptions that I'll be making throughout the length of this course. First, you should have a fair understanding of the Swift programming language, especially the changes that are offered in Swift 4, as that is the version of Swift we're going to be discussing. While the changes between Swift 3 and 4 weren't as drastic as in previous versions, you should still be aware of the changes to adjust your code as necessary. You should be familiar with concurrent programming concepts such as delegation or function callbacks or completion handlers, as concurrency plays a key role in handling the different stages of in-app purchases.
I'm also expecting that you've built your own app or two in Xcode. And the version of code that we're going to be using is Xcode 9. You should have a membership to the Apple Developer Program and be familiar with such items as app id's, bundle identifiers, and provisioning profiles. You should also have access to iTunes Connect, with the ability to create and modify app data, as we'll need to go in here to create our purchasable products. And lastly, you should have an iOS device to test on, as you cannot go through the entire in-app purchase process in simulator.
This is an intermediate level course. While we'll be covering the basics of in-app purchases, the information is meant to build upon your existing understanding of programming projects with Swift and Xcode. If you have any questions about the items listed here, Apple has sufficient documentation in the developer portal that covers each of these items at length.
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