Join Ron Buencamino for an in-depth discussion in this video Request products from the App Store, part of Implementing In-App Purchases in iOS 10 with Swift 3.
- (Narrator) When requesting an available…products list from the app store,…we're going to need to provide a list…of product identifiers to query against.…Anything that matches will be returned to us…in our SKProductsRequestDelegate call back.…So I'm going to create a function called…get product identifiers that will return…an array of strings, each being an identifier…of a product that we'd like to query for.…Now, providing this list of identifiers…can be done in two ways.…We could bake our app with the product identifiers…already entered, or we could make a call…to a web server that we host and…retrieve a list of identifiers.…
Now, there are advantages to both.…If we were to bake our app with product identifiers,…we're simply hard coding these items into an array…and we would, in turn, include that array…with our product request.…Now while this is the easiest of methods,…it's also the least scalable, as you would need…to submit a new app update each time you wanted to add…or remove products for sale.…Now when working with the web server,…
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