how does messages notification work

I'm seeing that I'm notified if someone posts a comment on a thread after me. But if someone sends me a message do I have to be signed in to see that or notified of it?