Join Ron Buencamino for an in-depth discussion in this video Restore purchases, part of Implementing In-App Purchases in iOS 10 with Swift 3.
- View Offline
- [Instructor] So our app is almost complete.…However, we have just one more task left to do.…We want to give the user a mechanism…to restore completed transactions,…and this will probably need to occur…whenever the user needs to reinstall their app…on their device for whatever reason.…So something I want to keep note of over here is that…non-consumable products and auto-renewing subscriptions…are handled via the restore API that I'm going to demonstrate.…Consumable and non-renewing subscriptions…should be handled by the developer…via a web server that has kept records of these purchases.…
So I'm in IAPManager right now, and I want to jump down…to the bottom of this class,…and I'm going to create a function called restoreTransactions.…What I want to do with this function is call the…default payment queues restore completed transaction method.…This process pulls an updated receipt from the App Store…and restores each individual transaction…that appears on the receipt.…If we want to be notified of when a transaction…
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