I have a Xamarin.Forms app that uses push notifications. For some reason, the following line:
(App.Current.MainPage as MainPage)?.AddMessage(body);