✅ Async app initialization fails
Hi, I tried to upgrade my app initialization steps by making them async, but I am stuck with errors I don't truly understand.
1 Reply
Initialization()
is called from MainNavigationPage
Appearing
event, because that's first place I can run async code
I observed code failing somewhere about CopyToAsync
I tried to execute Task.Run( async () => await Initialization());
in App
constructor
Tried to Wait()
and GetAwaiter().GetResult();
Result
property as well
I need to execute this method before my App.MainPage
gets assigned (also can't do it outside ctor)
I'm kinda stuck because I don't want to revert my changes to previous commit
better is the enemy of good
Ok actually some other operation were blocking the UI