NullReferenceException on App.Current.MainPage

前端 未结 0 1798
盖世英雄少女心
盖世英雄少女心 2020-12-04 02:18

I have a Xamarin.Forms app that uses push notifications. For some reason, the following line:

(App.Current.MainPage as MainPage)?.AddMessage(body);

相关标签:
回答
  • 消灭零回复
提交回复
热议问题