How to use local notifications

Hello I hope you are well, I would like to know if I can use LocalNotification at the time of receiving messages or orders (modules that I use in the application I am doing) maybe something like whatsapp, that notifies when there are new messages, in the same way, when Receive new orders! I don’t know much about ionic, just learning! Many thanks!