1 00:00:02,150 --> 00:00:03,180 As I mentioned, 2 00:00:03,180 --> 00:00:06,410 there are basically two types of notifications 3 00:00:06,410 --> 00:00:09,420 and that would be local notifications 4 00:00:09,420 --> 00:00:11,860 and push notifications. 5 00:00:11,860 --> 00:00:15,000 Now the two types are related as you will see, 6 00:00:15,000 --> 00:00:16,690 but it is important to understand 7 00:00:16,690 --> 00:00:20,110 that we generally have these two types. 8 00:00:20,110 --> 00:00:22,993 Now, what are local notifications? 9 00:00:24,340 --> 00:00:27,180 Local notifications are notifications 10 00:00:27,180 --> 00:00:31,080 that are scheduled and triggered and handled 11 00:00:31,080 --> 00:00:33,330 on one and the same device. 12 00:00:33,330 --> 00:00:35,410 So they are triggered by the app 13 00:00:35,410 --> 00:00:37,930 and displayed locally to the user. 14 00:00:37,930 --> 00:00:40,370 They never leave the device. 15 00:00:40,370 --> 00:00:44,320 Local notifications are never sent or shown 16 00:00:44,320 --> 00:00:47,520 to other users or other devices. 17 00:00:47,520 --> 00:00:49,700 They stay on your device. 18 00:00:49,700 --> 00:00:53,050 Now you might wonder when this could be useful. 19 00:00:53,050 --> 00:00:57,690 Why would an app send a notification to itself? 20 00:00:57,690 --> 00:01:00,550 Well, here's an example you probably all know. 21 00:01:00,550 --> 00:01:01,950 A reminder app. 22 00:01:01,950 --> 00:01:04,470 If users use a reminder app, 23 00:01:04,470 --> 00:01:08,230 it is quite common that you can set, like, a deadline 24 00:01:08,230 --> 00:01:12,675 or simply a date and a time when you want to be reminded. 25 00:01:12,675 --> 00:01:15,890 And that can be achieved with local notifications 26 00:01:15,890 --> 00:01:17,070 for example. 27 00:01:17,070 --> 00:01:20,440 There, you don't really need a server or a backend 28 00:01:20,440 --> 00:01:21,980 or any other users. 29 00:01:21,980 --> 00:01:24,510 You just want to remind yourself. 30 00:01:24,510 --> 00:01:25,990 And therefore, of course, 31 00:01:25,990 --> 00:01:28,610 a local notification should be triggered 32 00:01:28,610 --> 00:01:31,120 so that even if the app is closed, 33 00:01:31,120 --> 00:01:34,600 that feature still works and you get this reminder. 34 00:01:34,600 --> 00:01:37,470 I mean, that's the whole idea of this app there. 35 00:01:37,470 --> 00:01:40,220 And a reminder app is just one example. 36 00:01:40,220 --> 00:01:42,700 You will notice that many apps on your device 37 00:01:42,700 --> 00:01:46,450 send you local notifications from time to time, 38 00:01:46,450 --> 00:01:49,060 reminders that you should use them again 39 00:01:49,060 --> 00:01:51,170 or anything like that. 40 00:01:51,170 --> 00:01:54,180 Now we also have push notifications though. 41 00:01:54,180 --> 00:01:55,720 These are notifications 42 00:01:55,720 --> 00:01:59,840 which are not triggered by the app for itself, 43 00:01:59,840 --> 00:02:04,190 but which are received by the app, sent by someone else. 44 00:02:04,190 --> 00:02:05,050 And I will, of course, 45 00:02:05,050 --> 00:02:09,750 show you how to send a push notification in this module. 46 00:02:09,750 --> 00:02:12,139 Now, when a push notification is received, 47 00:02:12,139 --> 00:02:16,440 that in turn then shows such a local notification. 48 00:02:16,440 --> 00:02:18,660 So that's the connection we have. 49 00:02:18,660 --> 00:02:22,800 But a push notification is sent by someone else, 50 00:02:22,800 --> 00:02:25,280 by a server, by another user, 51 00:02:25,280 --> 00:02:29,470 by some interaction in an app on another device, 52 00:02:29,470 --> 00:02:31,970 a push notification is not triggered 53 00:02:31,970 --> 00:02:34,370 by your local app installation, 54 00:02:34,370 --> 00:02:38,030 but instead it is received from outside your device 55 00:02:38,030 --> 00:02:39,770 so to say. 56 00:02:39,770 --> 00:02:42,690 So push notifications are notifications 57 00:02:42,690 --> 00:02:47,330 that are sent remotely to one or many users and devices, 58 00:02:47,330 --> 00:02:50,570 and they then show up on those devices 59 00:02:50,570 --> 00:02:53,050 to lead those users to do something. 60 00:02:53,050 --> 00:02:55,600 For example, open the app. 61 00:02:55,600 --> 00:02:58,637 Examples here of course, would be chat apps, email apps, 62 00:02:58,637 --> 00:03:02,320 where maybe you as the seller of an item 63 00:03:02,320 --> 00:03:05,320 get a notification if someone ordered an item. 64 00:03:05,320 --> 00:03:07,512 So there are plenty of applications out there 65 00:03:07,512 --> 00:03:09,680 where something happens 66 00:03:09,680 --> 00:03:12,580 and a push notification should be sent. 67 00:03:12,580 --> 00:03:14,350 In addition to such triggers 68 00:03:14,350 --> 00:03:16,120 that would happen inside of an app, 69 00:03:16,120 --> 00:03:19,270 we could also have marketing push notifications 70 00:03:19,270 --> 00:03:21,600 where all users of an app 71 00:03:21,600 --> 00:03:23,790 get a marketing push notification 72 00:03:23,790 --> 00:03:26,800 sent by the developer of the app. 73 00:03:26,800 --> 00:03:27,780 Now, as I mentioned, 74 00:03:27,780 --> 00:03:31,250 we'll have a look at sending push notifications later. 75 00:03:31,250 --> 00:03:34,483 I want to start with local notifications.