New message notification in chat

hello club, I’m making a chat and after success in its functionality, I’m looking for how to make a notification about a new message from the user … tell me how to do it, I also want the notification icon to light up with a new message that there is a new message in this chat, how to do ?? Help
2022-08-18  23.47.41