Android Notifications - Part 12, Handling push notifications in foreground

Опубликовано: 23 Октябрь 2024
на канале: Codetutor
9,345
90

In this video we have a look at how to handle the incoming push notification in Android, when the application is in foreground. The very simple approach is, inside the onMessageReceived method of FirebaseMessagingService, you will have to handle it. The RemoteMessage that will be handed inside the method, will contain the necessary information that you need to draft the Notification and then trigger it. In this video we also have a look at at how to trigger the notification from the Firebase console based on the channel id.

Follow me on Codetutor:   / anilvdeshpande  

Github link to the source code: https://github.com/AnilDeshpande/Noti...