Hey everybody what's going on this is callup with slopes dot com.
And welcome to the in-app purchase target topic.
Focusing specifically on auto renewing subscriptions I'm going to show you how to basically set up an
auto renewing subscription in iTunes Connect how to integrate certain functionalities depending on whether
or not a user is actively subscribed in a subscription.
It's very cool.
So let's begin by just taking a look at the starter project.
And we do have a starter project for this particular course.
Simply because the first course about consumable and non consumable in-app purchases was a great beginning
and beginning framework that we're just going to go ahead and build on top of it any time you can go
ahead and find our first course if you want to go through that and you can learn how we built the starter
project.
But for this course we're going to just start with the starter project so pull open the assets that
you've downloaded and if you haven't just tap on the download assets button a little folder with a little
download icon and you're going to go ahead and open food Zilah like so and then I will pull it open
here and it should look like this and we're just going to quickly explore through it so you can see
what is going on in Main storyboard.
We have two simple view controllers.
We have a collection view a label and a button.
The collection view if you tap on a cell it brings up this view controller which displays the items
name and price.
It also shows ads and it lets you buy an item for a certain dollar amount that is a consumable purchase.
You can also tap this button to hide ads for 99 cents and it hides this banner ad which if you were
using a third party framework you might drag in something similar to this.
So that is what we did.
This is the starting point.
And what we're going to do is we're basically going to add a button that when we tap it it allows us
to subscribe to a monthly subscription for this food service.
When we are subscribed it's going to go ahead and change certain ways that the interface looks and it's
also going to go ahead and get rid of the ads just as part of one of the perks of being a subscriber.
So we're going to look through some of the code.
You probably are already familiar with this.
If you've taken the first part of this course.
But basically what we already have set up here in the starter project is a function called load products
and it basically calls to other functions.
And those two functions help us to load all of our in-app purchases from iTunes Connect.
That's where all of our in-app purchases are housed where they live.
And so we call a delegate method from S-K products request delegate and that that method basically checks
to see if we got a response if there are products that were returned if there weren't we call request
products again and we try again.
It's kind of like a retry.
And if there were then we call delegate Dom IAP products loaded now in store Visi which is this view
controller here.
This guy in storefront see what we do is we conform to that delegate by calling IP products loaded.
And then as soon as all the products are loaded we print out hey everything's loaded everything's good
to go.
So that's pretty cool.
Now what we're going to be doing is we're going to add an auto renewing subscription tier to what we
have already in iTunes Connect and don't worry if you're brand new.
If this is the first in-app purchased course you're taking We're going to review how to set up an app
in iTunes Connect.
But then we're going to go ahead and dive right into actually making this app capable of having subscriptions
and this is really cool for an app that you might have like if you have some type of SAS model app software
as a service you might want to use subscriptions to give people access to.
That's pretty cool.
So let's go ahead and let's actually dive into the next video where we're going to basically review
how to set up an App project like this in iTunes Connect.
I'm really excited to get started with this.
And let's head over to the next video right now.