1
00:00:07,150 --> 00:00:10,460
Hey everybody what's going on this is callup with slopes dot com.

2
00:00:10,470 --> 00:00:13,300
And welcome to the in-app purchase target topic.

3
00:00:13,300 --> 00:00:19,240
Focusing specifically on auto renewing subscriptions I'm going to show you how to basically set up an

4
00:00:19,240 --> 00:00:25,660
auto renewing subscription in iTunes Connect how to integrate certain functionalities depending on whether

5
00:00:25,660 --> 00:00:29,500
or not a user is actively subscribed in a subscription.

6
00:00:29,520 --> 00:00:30,400
It's very cool.

7
00:00:30,400 --> 00:00:34,210
So let's begin by just taking a look at the starter project.

8
00:00:34,210 --> 00:00:37,430
And we do have a starter project for this particular course.

9
00:00:37,570 --> 00:00:44,740
Simply because the first course about consumable and non consumable in-app purchases was a great beginning

10
00:00:44,770 --> 00:00:49,930
and beginning framework that we're just going to go ahead and build on top of it any time you can go

11
00:00:49,930 --> 00:00:55,180
ahead and find our first course if you want to go through that and you can learn how we built the starter

12
00:00:55,180 --> 00:00:56,130
project.

13
00:00:56,200 --> 00:01:01,090
But for this course we're going to just start with the starter project so pull open the assets that

14
00:01:01,090 --> 00:01:05,740
you've downloaded and if you haven't just tap on the download assets button a little folder with a little

15
00:01:05,740 --> 00:01:11,470
download icon and you're going to go ahead and open food Zilah like so and then I will pull it open

16
00:01:11,470 --> 00:01:16,540
here and it should look like this and we're just going to quickly explore through it so you can see

17
00:01:16,540 --> 00:01:19,810
what is going on in Main storyboard.

18
00:01:19,810 --> 00:01:21,400
We have two simple view controllers.

19
00:01:21,400 --> 00:01:24,850
We have a collection view a label and a button.

20
00:01:24,850 --> 00:01:30,370
The collection view if you tap on a cell it brings up this view controller which displays the items

21
00:01:30,370 --> 00:01:31,800
name and price.

22
00:01:31,810 --> 00:01:38,490
It also shows ads and it lets you buy an item for a certain dollar amount that is a consumable purchase.

23
00:01:38,560 --> 00:01:44,950
You can also tap this button to hide ads for 99 cents and it hides this banner ad which if you were

24
00:01:44,950 --> 00:01:49,200
using a third party framework you might drag in something similar to this.

25
00:01:49,270 --> 00:01:51,100
So that is what we did.

26
00:01:51,100 --> 00:01:52,460
This is the starting point.

27
00:01:52,630 --> 00:01:57,430
And what we're going to do is we're basically going to add a button that when we tap it it allows us

28
00:01:57,430 --> 00:02:01,400
to subscribe to a monthly subscription for this food service.

29
00:02:01,570 --> 00:02:07,600
When we are subscribed it's going to go ahead and change certain ways that the interface looks and it's

30
00:02:07,660 --> 00:02:13,250
also going to go ahead and get rid of the ads just as part of one of the perks of being a subscriber.

31
00:02:13,300 --> 00:02:15,960
So we're going to look through some of the code.

32
00:02:16,000 --> 00:02:17,740
You probably are already familiar with this.

33
00:02:17,740 --> 00:02:19,870
If you've taken the first part of this course.

34
00:02:19,960 --> 00:02:26,710
But basically what we already have set up here in the starter project is a function called load products

35
00:02:27,040 --> 00:02:29,510
and it basically calls to other functions.

36
00:02:29,530 --> 00:02:34,440
And those two functions help us to load all of our in-app purchases from iTunes Connect.

37
00:02:34,480 --> 00:02:37,860
That's where all of our in-app purchases are housed where they live.

38
00:02:38,050 --> 00:02:47,560
And so we call a delegate method from S-K products request delegate and that that method basically checks

39
00:02:47,560 --> 00:02:53,620
to see if we got a response if there are products that were returned if there weren't we call request

40
00:02:53,620 --> 00:02:55,110
products again and we try again.

41
00:02:55,120 --> 00:02:56,350
It's kind of like a retry.

42
00:02:56,650 --> 00:03:04,120
And if there were then we call delegate Dom IAP products loaded now in store Visi which is this view

43
00:03:04,120 --> 00:03:05,180
controller here.

44
00:03:05,470 --> 00:03:12,900
This guy in storefront see what we do is we conform to that delegate by calling IP products loaded.

45
00:03:12,900 --> 00:03:17,440
And then as soon as all the products are loaded we print out hey everything's loaded everything's good

46
00:03:17,440 --> 00:03:18,170
to go.

47
00:03:18,430 --> 00:03:19,780
So that's pretty cool.

48
00:03:19,780 --> 00:03:24,640
Now what we're going to be doing is we're going to add an auto renewing subscription tier to what we

49
00:03:24,640 --> 00:03:28,150
have already in iTunes Connect and don't worry if you're brand new.

50
00:03:28,150 --> 00:03:32,800
If this is the first in-app purchased course you're taking We're going to review how to set up an app

51
00:03:32,800 --> 00:03:34,690
in iTunes Connect.

52
00:03:34,780 --> 00:03:41,230
But then we're going to go ahead and dive right into actually making this app capable of having subscriptions

53
00:03:41,230 --> 00:03:47,890
and this is really cool for an app that you might have like if you have some type of SAS model app software

54
00:03:47,890 --> 00:03:51,390
as a service you might want to use subscriptions to give people access to.

55
00:03:51,390 --> 00:03:52,820
That's pretty cool.

56
00:03:52,990 --> 00:03:58,750
So let's go ahead and let's actually dive into the next video where we're going to basically review

57
00:03:59,110 --> 00:04:02,980
how to set up an App project like this in iTunes Connect.

58
00:04:03,130 --> 00:04:05,130
I'm really excited to get started with this.

59
00:04:05,140 --> 00:04:08,110
And let's head over to the next video right now.
