It's possible to receive notifications when gyms are under attack?

Hello people what you think? In this times we need to motivate pokemons on the gyms if we know when they are under attack we could save them more easily.

You will get a notification when they are low on motivation & if you don’t feed them, they will be defeated & return.

And for exemple if I’m not playing pokemon go in the moment? I don’t know some happens to me, when I go check the pokemon they already gone… xD and if we have a notification out of the game our something like that, I don’t know maybe we could save more easily the gyms.

Has anyone gotten a notification that their pokemon was victorious in battle? I know it was in the code, but I never got that message.