How do you make water fall into a cup?

I set everything up and the only problem I’m facing is that water splashes on top of the cup, and does not go inside.
It’s as if there’s an invisible platform on top of the cup preventing it from letting it fall in. I set the cup to a fluid obstacle.
How can I fix this problem?

Check face normal direction of the obstacle and/or try changing it to a shell obstacle

Thanks it worked. I changed it to shell. But there’s a bit of water leaking through the cube. Is it because the cube is too thin?

Almost certainly. Can also be caused by too low a fluid resolution, object scales not being applied (Ctrl-A in object mode) or any combination of the above.