1
00:00:00,180 --> 00:00:02,220
Heist the events in this city it's hard.

2
00:00:02,220 --> 00:00:06,060
All I want to actually talk about push notifications.

3
00:00:06,060 --> 00:00:11,410
So let's actually create an android studio project and for the name of the application just a pinhead

4
00:00:11,440 --> 00:00:15,990
app 71 Dasch push notifications

5
00:00:19,050 --> 00:00:19,880
on here.

6
00:00:19,950 --> 00:00:25,120
You can specify the company domain name and the project location and click on next.

7
00:00:25,310 --> 00:00:29,850
And here is a 16 Android 4.1 to the main form and the K.

8
00:00:29,990 --> 00:00:33,780
Click on this and choose any activity next.

9
00:00:33,870 --> 00:00:37,290
And then he had the kind of finish.

10
00:00:37,490 --> 00:00:41,040
So I think it is here are Android project is created.

11
00:00:41,060 --> 00:00:44,120
So now let's actually connect that application to the fireplace.

12
00:00:44,150 --> 00:00:47,030
So at the top click on Tools firebase.

13
00:00:47,410 --> 00:00:53,120
And now here this time click on cloud messaging because we want to actually get push notifications from

14
00:00:53,120 --> 00:00:54,050
the fireplace.

15
00:00:54,080 --> 00:00:58,790
So here just click on cloud messaging and then you can set up firebase clout messaging.

16
00:00:59,000 --> 00:01:02,300
And first of all we need to connect our application to firebase.

17
00:01:02,330 --> 00:01:03,710
So just click on this button.

18
00:01:05,670 --> 00:01:08,920
And here we want to create and you'll find it race project.

19
00:01:09,030 --> 00:01:15,250
So just you can specify the name here and then you can connect to firebase.

20
00:01:15,260 --> 00:01:20,850
So now let's add the firebase cloud messaging to our application.

21
00:01:20,870 --> 00:01:25,530
So just click on the spot in here at f f c m to add app.

22
00:01:25,580 --> 00:01:26,660
So this could be funny.

23
00:01:26,720 --> 00:01:32,980
And then here you just need to accept changes so let's wait a little bit here.

24
00:01:33,050 --> 00:01:38,090
So now the firebase cloud missing message is actually added to our project.

25
00:01:38,090 --> 00:01:38,480
Right.

26
00:01:38,540 --> 00:01:42,300
So now let's create on your class here on the Odama class.

27
00:01:42,380 --> 00:01:44,350
So here inside is Java.

28
00:01:44,390 --> 00:01:50,390
And inside this package just select this package and at the top just click on File Neo and then click

29
00:01:50,390 --> 00:01:51,620
on to upper class.

30
00:01:51,620 --> 00:01:59,130
So for the name of our Java class just typing here my firebase my firebase ID Silvis.

31
00:01:59,270 --> 00:02:02,110
So this is the name of our class and then click on OK.

32
00:02:02,390 --> 00:02:04,970
So this is the name of my class and here is my class.

33
00:02:05,000 --> 00:02:09,560
So let's actually double click on this tab here in order to make this area wider.

34
00:02:09,800 --> 00:02:17,880
And this class my firebase are in the service class is going to extend from the firebase instance IDs

35
00:02:17,890 --> 00:02:18,810
service.

36
00:02:19,100 --> 00:02:20,570
Right.

37
00:02:20,760 --> 00:02:25,730
And here this means that we are going to have actually a fire instance service.

38
00:02:25,730 --> 00:02:32,450
So this class my firebase idea service is going to inherit all the features and behaviors of this firebase

39
00:02:32,510 --> 00:02:34,080
instance I.T. service.

40
00:02:34,400 --> 00:02:42,130
And he actually created this service here in order to create a Torchin for our firebase cloud messaging

41
00:02:42,320 --> 00:02:48,060
so that we can actually just target a single device or a group of devices.

42
00:02:48,310 --> 00:02:52,310
Then we want to actually send notifications to those devices.

43
00:02:52,370 --> 00:02:56,030
So now we need to actually put some lines of code here inside this class.

44
00:02:56,180 --> 00:03:00,320
So I'm going to paste in some lines of code here and then I'm going to explain to you what's going on

45
00:03:00,320 --> 00:03:00,770
here.

46
00:03:00,860 --> 00:03:05,860
So as you can see here these are the lines of code that I've pasted here.

47
00:03:05,870 --> 00:03:09,800
So first of all we actually write it this method on Torchin refresh.

48
00:03:09,860 --> 00:03:10,580
Right.

49
00:03:10,670 --> 00:03:16,070
So the access modifier of this Mfat is probably the return type of Smif it is void.

50
00:03:16,460 --> 00:03:20,690
And let's actually go inside the curly braces of this Meffert And let's see what's going on here.

51
00:03:20,690 --> 00:03:26,510
First of all we have a comment and it says get updated instance Id tawkin right.

52
00:03:26,570 --> 00:03:35,300
So every device that we are going to actually send a push notification device has our instance ID right.

53
00:03:35,300 --> 00:03:44,360
So we can actually get that instance ID and we can actually just share that instance ID with other accounts

54
00:03:44,720 --> 00:03:50,900
that are for example the use there of for example our application is actually using other server side

55
00:03:51,110 --> 00:03:52,000
accounts right.

56
00:03:52,010 --> 00:03:54,950
So we can share that ID for other accounts.

57
00:03:54,950 --> 00:03:55,570
Right.

58
00:03:55,610 --> 00:03:58,260
So it's useful here to get that idea.

59
00:03:58,310 --> 00:03:59,380
It's always useful.

60
00:03:59,390 --> 00:04:02,420
So we created here are valuable of pope.

61
00:04:02,770 --> 00:04:04,930
And the name of this value but is refreshed.

62
00:04:04,940 --> 00:04:11,960
Talken assignment operator and that here I am actually referring to this firebase instance Id Dauth

63
00:04:12,200 --> 00:04:14,330
instance that get talking.

64
00:04:14,330 --> 00:04:20,660
So in this way we can actually get the specific Torchin for a specific device and here line number 21

65
00:04:20,920 --> 00:04:23,550
we are actually printing that value to the console.

66
00:04:23,660 --> 00:04:25,040
So luck that D.

67
00:04:25,320 --> 00:04:33,760
And first of all let's actually just we need to actually provide a track here for are actually class.

68
00:04:33,890 --> 00:04:38,450
So as you can see here it just mistakenly imported this hack.

69
00:04:38,450 --> 00:04:40,050
Here we don't need that.

70
00:04:40,170 --> 00:04:42,440
So I don't want to use this one.

71
00:04:42,440 --> 00:04:44,410
So let's actually deleted delete this one.

72
00:04:44,550 --> 00:04:48,380
And now let's actually go inside this class.

73
00:04:48,380 --> 00:04:49,900
My father was in the service.

74
00:04:50,060 --> 00:04:52,070
Let's create a constant here.

75
00:04:52,220 --> 00:05:00,950
So here I can say for example private static screen task assignment operator.

76
00:05:01,160 --> 00:05:08,310
And inside the code just typing in here for example instance instance ID.

77
00:05:08,420 --> 00:05:10,020
So this is going to be our task.

78
00:05:10,190 --> 00:05:10,700
Right.

79
00:05:10,700 --> 00:05:12,510
And when we don't need this one.

80
00:05:13,010 --> 00:05:15,540
So now I actually put this back here.

81
00:05:15,650 --> 00:05:21,170
So let's actually put a semicolon at the end of our statement and here as you can see this is the value

82
00:05:21,170 --> 00:05:26,610
that you want to output to the lock refreshed tawkin plus refresh tokened.

83
00:05:26,630 --> 00:05:29,070
So this is going to be the token for every device.

84
00:05:29,270 --> 00:05:34,940
And here we are calling the Smurfette send the registration to server and we are passing this refresh

85
00:05:34,940 --> 00:05:36,260
token to dismiss it.

86
00:05:36,290 --> 00:05:41,510
So we are actually using this method as you can see we actually have this method inside this class right.

87
00:05:41,510 --> 00:05:46,850
Private voice sent registration to server and this method accepts an argument of types 3 and and the

88
00:05:46,850 --> 00:05:48,960
name of this argument is actually talking.

89
00:05:49,190 --> 00:05:54,330
So as you can see I didn't put an implementation here for this method because we don't need it.

90
00:05:54,440 --> 00:06:01,910
But let me tell you that this method is used for actually since the end of the talken to serve to other

91
00:06:01,910 --> 00:06:03,820
accounts to other separate accounts.

92
00:06:03,980 --> 00:06:08,950
But we don't need it here but it's always good to have a fresh token for each device.

93
00:06:09,170 --> 00:06:14,320
And now we need to actually just put the service inside the app manifest.

94
00:06:14,330 --> 00:06:19,220
So let's actually just at the top click on View and then click on tool windows and then click on project

95
00:06:20,000 --> 00:06:21,100
and then here DoubleClick.

96
00:06:21,110 --> 00:06:22,850
And this manifests here.

97
00:06:23,270 --> 00:06:25,430
So this is our manifest file.

98
00:06:25,610 --> 00:06:28,220
So now let's actually to go inside the application tab.

99
00:06:28,220 --> 00:06:29,280
This is very important.

100
00:06:29,300 --> 00:06:31,700
We must say the application tab.

101
00:06:31,820 --> 00:06:37,680
So just here and now I'm going to paste in some lines of code here.

102
00:06:37,700 --> 00:06:40,910
So as you can see here I pasted these codes here.

103
00:06:40,910 --> 00:06:41,460
Right.

104
00:06:41,660 --> 00:06:45,830
So we have actually attached and the name of this tag is service.

105
00:06:45,830 --> 00:06:53,510
So we need to add this service to our app manifests here right on our service and here I actually specify

106
00:06:53,630 --> 00:06:59,770
the name of the service and don't call it name the name is not my firebase I.D. service.

107
00:06:59,770 --> 00:07:05,900
So here I am referring to this service that I have inside our package this class my firebase I.D. service

108
00:07:06,140 --> 00:07:09,220
and here we have another intent filter.

109
00:07:09,260 --> 00:07:12,410
So an insight is entered into into filter's patch.

110
00:07:12,410 --> 00:07:20,150
We have this action and right name call name come that Google does firebase that instance Id event.

111
00:07:20,330 --> 00:07:20,840
Right.

112
00:07:20,840 --> 00:07:27,080
So it is really important that we actually put this service here right because of what we want to make

113
00:07:27,080 --> 00:07:29,140
sure that the service is actually loaded.

114
00:07:29,240 --> 00:07:35,070
So we must actually put this service here inside the manifest and inside the application stack.

115
00:07:35,180 --> 00:07:35,420
Right.

116
00:07:35,420 --> 00:07:40,190
So first you need to specify the name which you can actually first to the name of your class and then

117
00:07:40,190 --> 00:07:45,590
you put another intense filter and then you put this line of code here inside this intent filter attack.

118
00:07:45,710 --> 00:07:46,820
Right.

119
00:07:46,820 --> 00:07:53,930
So now let's actually create another class in order to receive the push notifications that you actually

120
00:07:53,930 --> 00:07:55,140
get from the center.

121
00:07:55,340 --> 00:07:59,930
So again just click on this package at the top click on File Neo.

122
00:08:00,080 --> 00:08:02,210
And then here click on double class.

123
00:08:02,210 --> 00:08:11,710
So now let's name this class my firebase my firebase message service.

124
00:08:11,930 --> 00:08:13,980
So now let's actually click on OK.

125
00:08:14,210 --> 00:08:16,440
So here we have this cell with this class.

126
00:08:16,460 --> 00:08:17,150
Right.

127
00:08:17,150 --> 00:08:25,870
So now this class is going to extend from the firebase firebase messaging service.

128
00:08:26,060 --> 00:08:29,540
So let me actually DoubleClick on this tab in order to make this area wider.

129
00:08:29,540 --> 00:08:35,720
So here we have this class my firebase message service that actually extends firebase messaging service

130
00:08:35,960 --> 00:08:42,500
and this means that this class this my firebase Mrs. servies class is actually a firebase messaging

131
00:08:42,500 --> 00:08:48,110
service so now we can actually talk about using it so we can get the push notifications we can't get

132
00:08:48,110 --> 00:08:50,560
the messages from the server and put it here.

133
00:08:50,570 --> 00:08:56,390
So you are all familiar with creating local notifications in Android so you can actually put those logic's

134
00:08:56,390 --> 00:09:03,050
here and you can actually get the messages from the server and create local and create notifications

135
00:09:03,620 --> 00:09:05,540
by using those codes.

136
00:09:05,540 --> 00:09:09,620
So now let me just get put some logic here and then it will make sense.

137
00:09:09,620 --> 00:09:14,600
So as you can see here these are the lines of code that I pasted here.

138
00:09:14,750 --> 00:09:19,790
A line number 14 as you can see we have actually a variable or a constant.

139
00:09:19,790 --> 00:09:23,850
Right and the name of this variable is patch.

140
00:09:24,050 --> 00:09:30,200
So you are already familiar with this tag here private static final streamed package and the assigned

141
00:09:30,240 --> 00:09:33,610
disvalue C M firebase cloud messaging.

142
00:09:33,710 --> 00:09:42,620
And here because we are actually extending this class firebase messaging service here we need to actually

143
00:09:42,710 --> 00:09:46,260
overwrite the Smurfette and message received.

144
00:09:46,490 --> 00:09:50,800
So by using this method we can actually get the message from the server.

145
00:09:50,870 --> 00:09:56,000
So whenever that we actually send a push notification from the firebase by using this method they can

146
00:09:56,000 --> 00:10:01,540
actually get the message and we can actually output this message to the screen or we can output it to

147
00:10:01,530 --> 00:10:02,340
the log.

148
00:10:02,390 --> 00:10:05,020
So as you can see we have some comments here.

149
00:10:05,150 --> 00:10:13,460
So it says to handle if the messages here if the application is in the foreground handle both data and

150
00:10:13,850 --> 00:10:15,820
notification messages here.

151
00:10:15,980 --> 00:10:23,120
Also if you intend on generating your own notifications as a result of received if the message here

152
00:10:23,120 --> 00:10:25,060
is the word that should be initiated.

153
00:10:25,250 --> 00:10:31,070
So you are already familiar with creating notifications and generating notifications so you can actually

154
00:10:31,400 --> 00:10:37,830
put those logic here or you can put those codes here and then here you can just create your own little

155
00:10:38,030 --> 00:10:42,650
notifications here by using the messages that you receive from the server.

156
00:10:42,650 --> 00:10:45,500
So here we have some luck statements.

157
00:10:45,500 --> 00:10:46,840
So the first one is luck.

158
00:10:46,990 --> 00:10:47,570
The.

159
00:10:47,810 --> 00:10:52,490
And we passed the tag here and for the second argument we need to pass the message.

160
00:10:52,490 --> 00:10:57,110
So here is the code from colon plus remote message.

161
00:10:57,100 --> 00:11:02,540
So if we get this remote message from this Mufid remote message that gets from.

162
00:11:02,540 --> 00:11:08,010
So in this way we can actually get the value that from who we get this message right.

163
00:11:08,170 --> 00:11:10,880
A remote message that gets from.

164
00:11:11,180 --> 00:11:18,530
And then here we can actually as you can see we use this code here we want to output this value to the

165
00:11:19,030 --> 00:11:24,890
lock so look that the past tag the tag here for the second argument we passed this value.

166
00:11:25,010 --> 00:11:30,500
And here we put the notification message notification message plus remote message.

167
00:11:30,500 --> 00:11:35,360
Again we are referring to the arguments that we receive from the Smurfette that get notification that

168
00:11:35,360 --> 00:11:37,410
gets buddy right.

169
00:11:37,430 --> 00:11:44,090
So in this way we can actually get the text of the push notification of the notification that you create

170
00:11:44,390 --> 00:11:46,300
and you send two other devices.

171
00:11:46,550 --> 00:11:48,340
So let's see how we can use that here.

172
00:11:48,350 --> 00:11:55,670
First of all again we need to go to Android manifests here and now again in say the application package

173
00:11:55,950 --> 00:11:58,640
we need to actually add this service here.

174
00:11:58,640 --> 00:11:59,500
Right.

175
00:11:59,930 --> 00:12:05,000
So inside this application let me just pasting some lines of code here and then I'm going to explain

176
00:12:05,000 --> 00:12:06,930
to you what's going on here.

177
00:12:07,040 --> 00:12:12,000
So now as you can see here I have this error here inside this file inside the manifest file.

178
00:12:12,290 --> 00:12:15,080
And here is where I actually hovered over this area.

179
00:12:15,080 --> 00:12:18,620
Here inside is a red square here.

180
00:12:18,740 --> 00:12:20,400
It's going to actually show me the error message.

181
00:12:20,400 --> 00:12:22,330
So now let me show you that here.

182
00:12:22,880 --> 00:12:30,470
And it says XML declaration should precede all documents document content and the error is because of

183
00:12:30,470 --> 00:12:31,600
this space here.

184
00:12:31,700 --> 00:12:32,360
Right.

185
00:12:32,360 --> 00:12:35,030
So we need to put this code this line of code here.

186
00:12:35,180 --> 00:12:35,760
Right.

187
00:12:35,780 --> 00:12:37,390
So now let me actually just put it here.

188
00:12:37,430 --> 00:12:39,140
And now the error is gone.

189
00:12:39,140 --> 00:12:39,800
Right.

190
00:12:40,130 --> 00:12:44,440
So if you ever encountered this kind of error you can solve it in this way.

191
00:12:44,450 --> 00:12:47,290
So again this actually goes into this application pack.

192
00:12:47,300 --> 00:12:49,880
So as you can see I pasted these codes here.

193
00:12:49,970 --> 00:12:57,090
So again if you have this service and the name of the service is that my firebase message service.

194
00:12:57,170 --> 00:13:00,790
So here I am refilling to disclose my firebase misses service.

195
00:13:00,790 --> 00:13:05,020
So this is the name our service and here inside is service pack.

196
00:13:05,150 --> 00:13:07,300
We have this intense filter tag.

197
00:13:07,520 --> 00:13:14,520
So inside this intense filter type we have this court action and troit name come that Google that firebase

198
00:13:14,820 --> 00:13:17,490
that messaging underline event.

199
00:13:17,500 --> 00:13:23,470
So this is very important to actually put this service here in order to make sure that this service

200
00:13:23,780 --> 00:13:26,430
does Firebrace messaging service is actually loaded.

201
00:13:26,440 --> 00:13:27,530
This is really important.

202
00:13:27,580 --> 00:13:34,600
So Vinita put up these services these two services inside our manifest file and inside the application

203
00:13:34,600 --> 00:13:35,840
package.

204
00:13:36,070 --> 00:13:40,940
So now our application is ready to actually get the push notification messages.

205
00:13:41,050 --> 00:13:46,690
So analysis I actually have done our project and here is one of these devices and then click on OK.

206
00:13:46,900 --> 00:13:49,570
So now let me show you the web browser here.

207
00:13:49,750 --> 00:13:51,460
So this is my web browser right.

208
00:13:51,550 --> 00:13:54,140
And now it is actually the go to console.

209
00:13:54,190 --> 00:13:57,030
So at the top just click on go to a console.

210
00:13:57,340 --> 00:14:02,170
And here are let's actually select our firebase projects that we actually connected our application

211
00:14:02,170 --> 00:14:02,680
to.

212
00:14:02,680 --> 00:14:10,880
So this is the project that we connected our application to app 71 push notifications and in here insight

213
00:14:10,890 --> 00:14:15,060
is left sidebar here we have these notifications.

214
00:14:15,070 --> 00:14:15,520
Right.

215
00:14:15,520 --> 00:14:22,390
Just click on it and here it says manager notification campaigns and sent messages to engage the right

216
00:14:22,390 --> 00:14:24,400
users at the right moment.

217
00:14:24,400 --> 00:14:30,040
And here we have this button sent your first message.

218
00:14:30,240 --> 00:14:33,960
So now we need to actually provide the message body message text.

219
00:14:33,960 --> 00:14:34,520
Right.

220
00:14:34,530 --> 00:14:38,580
So here I can say hello.

221
00:14:38,790 --> 00:14:46,510
This is my first notification.

222
00:14:46,620 --> 00:14:47,280
Right.

223
00:14:47,610 --> 00:14:51,700
And here you can actually provide a nickname for your message.

224
00:14:51,870 --> 00:14:53,110
So it is optional.

225
00:14:53,370 --> 00:14:55,460
And here it says delivery date send.

226
00:14:55,470 --> 00:14:56,840
Now scintillator right.

227
00:14:56,880 --> 00:15:04,790
So you can actually choose send later and actually specify a date in order to send that notification.

228
00:15:04,810 --> 00:15:06,790
But if you want to choose send now.

229
00:15:07,050 --> 00:15:09,770
And now we need to specify the target.

230
00:15:09,780 --> 00:15:11,610
So the target is going to be our application.

231
00:15:11,610 --> 00:15:12,170
Right.

232
00:15:12,180 --> 00:15:17,060
So here just click on the Select app and here choose this package.

233
00:15:17,300 --> 00:15:23,670
And now as you can see we actually selected this package here for this app and here I can just click

234
00:15:23,670 --> 00:15:25,700
on this sent message.

235
00:15:25,710 --> 00:15:32,490
We have also some other options for example conversation events or you can actually have advanced options

236
00:15:32,580 --> 00:15:33,360
here.

237
00:15:33,510 --> 00:15:37,780
Titel custom date our priorities sound expired weeks.

238
00:15:37,830 --> 00:15:44,670
So here you can just click on send message to actually send our first push notification sent message.

239
00:15:45,060 --> 00:15:49,380
And here it's can actually open this dialogue and it has a video message so delivery date.

240
00:15:49,380 --> 00:15:56,020
Now explicit X Pyrate time for weeks targeting news segment and you can you can see this package.

241
00:15:56,010 --> 00:15:57,720
So this is my prepackage right.

242
00:15:57,740 --> 00:16:05,250
And here it is typically consent so now as you can see it actually guided us to this page.

243
00:16:05,250 --> 00:16:05,880
Right.

244
00:16:05,940 --> 00:16:12,190
And here it says the message is Hello this is my first notification this status is in progress.

245
00:16:12,220 --> 00:16:15,810
Delivery delivery date and the platform is Android.

246
00:16:15,810 --> 00:16:22,730
So now let's actually go to our Android studio and here at the bar then just click on this android monitor.

247
00:16:22,950 --> 00:16:27,830
So now inside the search bar just search for if see him.

248
00:16:27,840 --> 00:16:28,950
So this is the tag.

249
00:16:29,340 --> 00:16:29,880
Right.

250
00:16:29,940 --> 00:16:35,420
If S.M. is attached and if you go to these are my firebase message service.

251
00:16:35,550 --> 00:16:38,190
We put you actually to use this Tadg.

252
00:16:38,250 --> 00:16:38,880
Right.

253
00:16:39,120 --> 00:16:42,020
So now let's actually wait a little bit here.

254
00:16:42,180 --> 00:16:47,730
So now as you can see here this is my android studio and at the bottom just click on Android monitor.

255
00:16:47,880 --> 00:16:51,900
And here inside the search bar just put f c m right.

256
00:16:51,900 --> 00:16:56,210
So inside your my firebase message so is the java file.

257
00:16:56,220 --> 00:16:57,880
We have the stack right.

258
00:16:57,930 --> 00:17:03,990
So if you put this value inside your search bar you can see this value here first you can see the value

259
00:17:03,990 --> 00:17:05,180
it says from.

260
00:17:05,190 --> 00:17:10,380
So this is the value that we get from this line of code here.

261
00:17:10,380 --> 00:17:12,910
REMAUT message does get from right.

262
00:17:13,050 --> 00:17:16,620
And here this is actually a notification message body.

263
00:17:16,860 --> 00:17:18,460
So here it is hello.

264
00:17:18,570 --> 00:17:20,490
This is my first notification.

265
00:17:20,520 --> 00:17:21,170
Right.

266
00:17:21,240 --> 00:17:27,590
So we successfully sent a notification to our Android application.

267
00:17:27,660 --> 00:17:28,290
Right.

268
00:17:28,320 --> 00:17:31,410
So now let me show you another important point.

269
00:17:31,470 --> 00:17:33,450
Let me show you the web browser first.

270
00:17:33,450 --> 00:17:39,750
So as you can see here I actually sent some notifications to my Android device for testing purposes

271
00:17:40,110 --> 00:17:42,160
but now let me show you the emulator.

272
00:17:42,690 --> 00:17:48,430
And now our application is actually running on this emulator right absent 1 push notifications.

273
00:17:48,450 --> 00:17:51,390
So now let me actually create another message here.

274
00:17:51,420 --> 00:17:57,630
So here just click on new message and let me show you the emulator.

275
00:17:57,750 --> 00:18:01,070
And now at the bottom just click on this little circle here.

276
00:18:01,080 --> 00:18:05,340
In order to actually lead an application to go in the background.

277
00:18:05,340 --> 00:18:06,090
OK.

278
00:18:06,390 --> 00:18:08,530
So now our application is actually in the background.

279
00:18:08,610 --> 00:18:09,210
Right.

280
00:18:09,480 --> 00:18:16,110
And now I want to create a new message and I want to send this message to my device to my Android application.

281
00:18:16,110 --> 00:18:21,760
So here I can say this is another message.

282
00:18:22,110 --> 00:18:22,780
Right.

283
00:18:23,180 --> 00:18:27,370
And now for the debilitates to send now.

284
00:18:27,560 --> 00:18:29,720
And the target is user segment.

285
00:18:29,760 --> 00:18:35,350
And here for the select app choose your package and then click on Send Message.

286
00:18:35,470 --> 00:18:37,370
So here just click on send.

287
00:18:37,410 --> 00:18:46,010
Now let me show you the emulator and now as you can see here if I show you the notifications here as

288
00:18:46,010 --> 00:18:48,380
you can see we have this notification here.

289
00:18:48,410 --> 00:18:51,530
It says At 71 push notifications.

290
00:18:51,620 --> 00:18:53,300
This is another message.

291
00:18:53,360 --> 00:19:00,740
So if your app is actually in the background or maybe you are not using your application here at the

292
00:19:00,740 --> 00:19:05,710
moment and when you send a message to your Android app.

293
00:19:05,960 --> 00:19:12,020
Two other devices here the notification is going to appear here.

294
00:19:12,200 --> 00:19:12,500
Right.

295
00:19:12,500 --> 00:19:15,710
This is an other message push notification.

296
00:19:15,710 --> 00:19:18,430
So this was the point that I wanted to show you.

297
00:19:18,770 --> 00:19:24,080
And I think that's enough for this tutorial so if you have any questions please post the discussion

298
00:19:24,080 --> 00:19:27,590
in the course and then I'll do my best to answer all of your questions.

299
00:19:27,590 --> 00:19:30,600
Thank you very much for watching and I'll see you in the next year to all the old.

