How to make an image appear when a message is received

Is there a way to have an image appear when a WhatsApp or Gmail message is received?

You need to put an image in the place that you want and in the choose image square tap in it to open the formula editor and put this formula

$if(ni(0,pkg),/the path/ to the image in/ your phone)$

this is for gmail, you need to put the exact path to the image to make this work.

For this if you have Es explorer, go to the image, tap in the properties of the image and here you have the complete path, copy it and paste in the position in the formula.

for whatsapp change the name of the package accordingly