1
00:00:07,120 --> 00:00:11,860
Hey everybody what's going on this is Caleb with Debb slopes dot com and this is it folks we're going

2
00:00:11,860 --> 00:00:15,440
to add non consumable purchases into our app.

3
00:00:15,730 --> 00:00:21,340
So we're going to start in iTunes Connect them we're going to set it up in our app to basically save

4
00:00:21,880 --> 00:00:24,460
using user defaults when we make that purchase.

5
00:00:24,460 --> 00:00:30,940
We're going to save a boolean to user defaults and then we're going to use that to show or hide the

6
00:00:30,940 --> 00:00:31,630
ad depending.

7
00:00:31,630 --> 00:00:39,040
So go ahead and open up iTunes can act like we've been using go to my apps just like that as soon as

8
00:00:39,040 --> 00:00:39,560
it loads.

9
00:00:39,580 --> 00:00:46,860
Choose the app that you're using then go into features and in-app purchases.

10
00:00:49,630 --> 00:00:57,640
Like so and click the plus next to it at Purchase choose non-consumer consumable and click Create.

11
00:00:57,800 --> 00:01:03,630
As soon as it loads we're going to set it up with all the data we need which is actually honestly just

12
00:01:03,630 --> 00:01:04,980
like the one before.

13
00:01:04,980 --> 00:01:07,650
It's not that much different.

14
00:01:07,980 --> 00:01:09,930
Here we go dude.

15
00:01:09,980 --> 00:01:12,410
Ok reference name remember that's internal.

16
00:01:12,420 --> 00:01:21,470
It's just for us but we're just going to say hide ads and we're going to give it a product ID.

17
00:01:21,510 --> 00:01:23,390
Oh no no no this is actually really important.

18
00:01:23,400 --> 00:01:28,740
We said this earlier in our constants not that we couldn't change it but we should be consistent.

19
00:01:28,740 --> 00:01:33,930
Copy that and we're going to paste that in as our product ID cleared for sale means it's just good to

20
00:01:33,930 --> 00:01:34,920
go.

21
00:01:34,980 --> 00:01:40,610
You would take this if you decided you wanted to add these but then make them available later on.

22
00:01:40,620 --> 00:01:42,970
So we're going to just make it available right now.

23
00:01:43,260 --> 00:01:47,140
Then we're going to choose a price tier which is going to be 99 cents.

24
00:01:47,400 --> 00:01:49,290
OK choose it like so.

25
00:01:49,350 --> 00:01:53,970
And of course there's no end date because this is not consumable it means that it's going to last forever.

26
00:01:54,000 --> 00:01:56,130
Once we buy it we own it now.

27
00:01:56,130 --> 00:02:02,730
Content hosting allows you to host in app content like lets say your app purchase contains a download

28
00:02:03,060 --> 00:02:06,750
or some file you can host that here which is really neat.

29
00:02:06,750 --> 00:02:12,460
And of course we have chosen an English localization but we need to give it a display name.

30
00:02:12,510 --> 00:02:15,240
So this is what's going to show up on the App Store we're just going to call it

31
00:02:17,900 --> 00:02:18,530
hide.

32
00:02:18,550 --> 00:02:29,640
I guess we can say hide ads and we can say this will hide in advertising.

33
00:02:29,770 --> 00:02:32,710
The description of what it is or what it does.

34
00:02:33,070 --> 00:02:33,630
And we're good.

35
00:02:33,640 --> 00:02:41,290
We can save this let's save it let's let it do its spinning thinking thing and then we have access to

36
00:02:41,350 --> 00:02:44,930
a nother and I purchased Ah.

37
00:02:44,970 --> 00:02:45,840
Interesting.

38
00:02:46,130 --> 00:02:49,550
OK so that's the one I used when I was developing this app in the first place.

39
00:02:49,590 --> 00:02:54,720
So let's go ahead and let's just say hide advertisements advertising.

40
00:02:54,740 --> 00:02:55,230
OK.

41
00:02:55,440 --> 00:03:01,050
And I'm going to copy this save this and then as soon as it publishes I'm going to go ahead and change

42
00:03:01,110 --> 00:03:06,340
the constant in our project to match the one from iTunes Connect.

43
00:03:06,630 --> 00:03:08,540
Looks like it was good.

44
00:03:08,550 --> 00:03:10,260
There we go it says missing metadata.

45
00:03:10,270 --> 00:03:14,640
That's fine because we're not actually publishing this to the App Store but our non-consumer Bowl is

46
00:03:14,640 --> 00:03:15,510
right there.

47
00:03:15,510 --> 00:03:16,540
Very cool.

48
00:03:16,560 --> 00:03:17,190
Copy this.

49
00:03:17,190 --> 00:03:19,390
And let's go ahead and head over to ex-coach again.

50
00:03:19,560 --> 00:03:25,040
We're going to change this constant to match the one from iTunes Connect So I just pasted it in there.
