Hey everybody what's going on this is Caleb with Debb slopes dot com and this is it folks we're going
to add non consumable purchases into our app.
So we're going to start in iTunes Connect them we're going to set it up in our app to basically save
using user defaults when we make that purchase.
We're going to save a boolean to user defaults and then we're going to use that to show or hide the
ad depending.
So go ahead and open up iTunes can act like we've been using go to my apps just like that as soon as
it loads.
Choose the app that you're using then go into features and in-app purchases.
Like so and click the plus next to it at Purchase choose non-consumer consumable and click Create.
As soon as it loads we're going to set it up with all the data we need which is actually honestly just
like the one before.
It's not that much different.
Here we go dude.
Ok reference name remember that's internal.
It's just for us but we're just going to say hide ads and we're going to give it a product ID.
Oh no no no this is actually really important.
We said this earlier in our constants not that we couldn't change it but we should be consistent.
Copy that and we're going to paste that in as our product ID cleared for sale means it's just good to
go.
You would take this if you decided you wanted to add these but then make them available later on.
So we're going to just make it available right now.
Then we're going to choose a price tier which is going to be 99 cents.
OK choose it like so.
And of course there's no end date because this is not consumable it means that it's going to last forever.
Once we buy it we own it now.
Content hosting allows you to host in app content like lets say your app purchase contains a download
or some file you can host that here which is really neat.
And of course we have chosen an English localization but we need to give it a display name.
So this is what's going to show up on the App Store we're just going to call it
hide.
I guess we can say hide ads and we can say this will hide in advertising.
The description of what it is or what it does.
And we're good.
We can save this let's save it let's let it do its spinning thinking thing and then we have access to
a nother and I purchased Ah.
Interesting.
OK so that's the one I used when I was developing this app in the first place.
So let's go ahead and let's just say hide advertisements advertising.
OK.
And I'm going to copy this save this and then as soon as it publishes I'm going to go ahead and change
the constant in our project to match the one from iTunes Connect.
Looks like it was good.
There we go it says missing metadata.
That's fine because we're not actually publishing this to the App Store but our non-consumer Bowl is
right there.
Very cool.
Copy this.
And let's go ahead and head over to ex-coach again.
We're going to change this constant to match the one from iTunes Connect So I just pasted it in there.