Help in an project

I am creating an app in which I want to add a feature of username.
Mainly the app is of sending and receiving via firebase so I want to add that if anyone puts the username it sends an message to that user
Can you help

maybe like try showing the coding you have done

I have got an idea