Join Ron Buencamino for an in-depth discussion in this video Implement the SKProductsRequestDelegate protocol, part of Implementing In-App Purchases in iOS 10 with Swift 3.
- View Offline
- [Instructor] So the first big task…at hand is to request a list of…products that are currently available…for our app from the app store.…That list of products is what we're…going to fill our array property with,…and so for us to be able to get that…we're going to need to submit an SK…product request and observe the properties…of the response that we get from the query.…Now for us to get that response,…we're going to need to implement the delegate…call-back method for that object,…so let's go ahead and do that first.…I'm here in IAPManager, and I'm now…going to have this class adhere to…the SK product's request delegate protocol.…
Now that I've done that, I want…to implement the call-back function…product request did receive response.…Now that the response that we're given…has a property, and that property…is called products, and that property…is an array containing all of the SK…products that match our query.…So what I really want to do here is…I want to set our products property…to be that of the responses property.…
First, learn what you can legitimately offer for sale in the App Store. Apple's guidelines restrict the sale of certain products, including real-world goods. Next, learn how to configure new products for sale with iTunes Connect and retrieve the product information in your app. Ron then shows how to request and process payments, and deliver the user's purchases to their iOS device. Plus, learn about selling subscriptions and restoring purchased content—a smart strategy for keeping your app rating high.
- What you can and can't sell in the App Store
- Looking at StoreKit
- Creating products in iTunes Connect
- Presenting products in your storefront
- Requesting payments in your app
- Processing transactions
- Delivering products
- Persisting purchases and auto-renewed subscriptions
- Restoring purchased content