Hi guys,
I'm after a little advice if I may.
I have a ContentPage
that may or may not be the first screen in my app depending on how the user launched it (either manually, or through a custom URL scheme).
On this page there are some dynamic labels created from a call to an API that we run. When this page is loaded manually by the user it's fine, the app has already launched and the API calls are asynchronous so I stick up a 'loading' overlay on the screen and then when the API returns it adds them no problem. However, if the user launches our app from its custom URL scheme then this will be the first page ever displayed so I'd like to hold off the API calls to a method like viewDidAppear
in iOS so the app doesn't get killed by the OS if the API doesn't return in time - at the moment the API call is done in the constructor.
Could someone point me in the right direction for how to architect this? I'm new to Xamarin & Xamarin.Forms so I'm obviously missing a little nugget of wisdom..
TIA
Greg