I noticed that the first screen's OnVisible function may be called before app.OnStart is done. I have an app that sets some variables by calling office365users search functions that sometimes take a some time to execute (almost every time on a non studio launch). My first screen of the app uses onvisible to calculate a collection that is used to render the values on the screen. I noticed that almost every launch outside of studio does not show all the controls properly but if I simply navigate off and back to the screen (or used a button to refresh the collection used by all the controls that are not rendering properly, all is shown correctly.
To work around this issue, I simply put in a navigate call in my app.onStart functon. This seems to ensure the screen is shown only after the dependent variables are calaculated. Powerapps should ensure this order or at least document that it does not wait for app.start to complete before rendering the first screen.
hope this helps.
Solved! Go to Solution.
Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.
Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.
Check out the new Power Platform Community Connections gallery!