‫Well, hello, my friends, and welcome again.
‫We will continue with our Firebase Cloud Messaging app and we will configure the manifest and the services.
‫So we are going to link the services with our app and then with the manifest in order to do its job
‫by acquiring and paying attention to any any ascended message or any message that will be sent from
‫the Firebase in order to display it as a notification for the user.
‫So inside the application here, we are going to add some codes.
‫What are these codes?
‫If we go to the documentations and we select the cloud messaging, this is the link.
‫We select for the Android.
‫And let me talk a little bit about what we are going to do.
‫We will create a firebase messaging service class later on, but I will add its its service tag inside
‫the manifest.
‫So this is required if you want to do any messaging message handling beyond receiving notifications
‫on app in the background to receive notifications in foregrounded app.
‫To receive data payload to send upstream messages and so on.
‫You must extend this service.
‫We will see how to extend it and how to manipulate it in the manifest.
‫We copied this and we go to here inside the application.
‫We put here the surface.
‫Don't worry, we will configure it later on so I can remove the Java and I will put my Firebase messaging
‫service or whatever you want.
‫You can name it.
‫Okay.
‫So this is our surface now.
‫I need to add some metadata before this activity here.
‫This is an option within the application component metadata element to set a default elements, to set
‫a default notification icon and colour.
‫Android uses these values whenever incoming messages do not explicitly set icon or colour.
‫So here you can customise the default icon.
‫And here you can set the color used in the incoming notification.
‫So we will start here by this metadata.
‫I will paste it here and the resources.
‫I, I will create some resources now and I will copy this metadata.
‫I will paste it here.
‫This is the color.
‫And you can see that.
‫Metadata and notification channels.
‫So.
‫Notification channels are supported and recommended.
‫FCM provides a default notification channel with basic setting.
‫If you prefer to create and use your own default channel, set the default underscore notification channel
‫ID to ID of to your notification channel object.
‫As shown here, FCM will re-use this value whenever incoming messages does not or do not explicitly
‫set in notification channel.
‫What are this channel?
‫We will see how to to subscribe to allow the user to subscribe for custom notifications, notification
‫channels and so on.
‫So I will cover all the topics about the notification.
‫So don't worry, I will copy and paste this metadata also.
‫So we have three errors.
‫We are now we are going to solve these errors.
‫I will download an icon here for my notifications.
‫So I would go to Google and search for a pretty, pretty icon.
‫And here is my lovely belle.
‫I will put here inside the drawer.
‫Will.
‫Put it here inside the door.
‫Robles will not fight.
‫And here we have configured this, the color that would be black and the default notification channel.
‫This is a string.
‫We are going to go to the strings example or the values strings and now we are going to create it here.
‫So alt plus enter to create the string resource value f c m default channel.
‫Click.
‫Okay.
‫And here we go.
‫Now let's configure this service.
‫Sorry.
‫I will create a new class here called Meyer Phrase in my Firebase Messaging Service, and I will create
‫also my worker message, my worker class that extends the worker and the main activity that we will
‫configure all of these classes in the next videos.