In *Avengers: Endgame*, Captain Marvel shows up for

> 
>  the big battle on Earth.
> 
> 
> 

I am curious to know who contacted her because she was likely on another planet when

> 
> Thanos's ship comes through the time machine. Thanos quickly destroyed the Avengers' base so it's highly unlikely that someone contacted her from within that facility.
> 
> 
> 

Perhaps she just happened to be 'in the neighborhood' at this time?