Join Ron Buencamino for an in-depth discussion in this video Delivering a product, part of Implementing In-App Purchases in iOS 11 with StoreKit.
- [Instructor] In our last lesson, we learned how to access…the different product entries found inside of our receipt.…Now, we're going to take that object data…and persist our purchases so that…we can deliver them to our users.…To better explain this,…I'm currently here in IAPManager.swift…and on line 120 after we validate the receipt,…we simply print out the purchases to the console log.…What we want to do now, is take the purchases…that we've parsed out and pass them…to our ProductManager class…so that we can process them accordingly.…
To visually see what we need to accomplish,…let's go ahead and build and run our app on our device.…When the app opens up,…go ahead and select your library and tap on a photo.…Here in the detail page I want to call attention to 2 things.…First, on the top right is our upload image button.…When we tap on it, we get an alert…that says that we need more credits.…We want to make it so that…if a user purchases single use credits,…they'll be able to not only use them,…but have their credit count…
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