Deep Dive into App.StartScreen and App.OnStart: Leveraging Powerful Navigation and Initialization in Canvas Apps
If you're interested in building custom applications quickly and easily, then canvas apps might be the solution you need. With their low-code approach to app development, you can create data collection forms, process automation, data visualization, and more. As Microsoft continues to add new features and improvements to canvas apps, this blog post delves into two important properties of the App object: App.OnStart and App.StartScreen.
App.OnStart is used for one-time initialization and global app-level settings. It's crucial for performing initialization work, retrieving data, determining which screen will be displayed first, and more. However, if not optimized adequately, it can cause performance problems. This is because App.OnStart often includes dependencies on external resources or synchronous actions that require waiting for a response. With large amounts of data or multiple iterations, performance issues can significantly impact app performance.
To address these problems, Microsoft has introduced a new property: App.StartScreen. This property is a declarative method for setting the first screen that is shown when the app starts and improves loading speed while providing a better user experience. This property is a subset of App.OnStart, and you can use it to simplify the lifecycle of the app, avoid common pitfalls, optimize Power Apps, and write less code.
Overall, by using both properties effectively, you can significantly improve the performance of your canvas apps. App.OnStart plays a crucial role in global app-level settings, whereas App.StartScreen improves loading speed and provides a better user experience. Combining these two properties allows you to create canvas apps that are efficient, effective, and engaging for your users.
Published on:
Learn moreRelated posts
Power App Component Overview : Canvas App vs Model-Driven App
The Power Platform, a suite of low-code/No-code tools and technologies developed by Microsoft, includes a component called Power Apps. This pl...
Canvas Apps: App vs Screen
When building Power Apps canvas apps, it's important to understand the difference between an "app" and a "screen." An app is the entire applic...
Host Object Demystified: Your Power Apps Companion
If you're a Power Apps developer looking to interact with the hosting environment and access its functionalities and resources, host objects a...
Microsoft Power Apps: Grouping Elements Together
If you're looking to enhance your app development process in Microsoft Power Apps, this tutorial is a must-read. In this tutorial, you'll lear...
Why 500 matters for Canvas Apps?
If you're running into issues with Canvas Apps, there's a good chance you've hit the 500 control limit. While it's tempting to think of this a...
How to check if a user is part of Office365Group in Power Apps canvas apps
Are you looking to check whether a user is part of an Office 365 Group in your Power Apps Canvas app? Look no further! This blog post has got ...
New Alternative of Navigate() function on App.StartScreen and App.OnStart in Canvas apps
If you've ever faced issues while writing code for Navigation in App.StartScreen and App.OnStart of App within PowerApps, this post may be of ...
PCF to upload excel data to Canvas App in Power Apps
In this informative #PowerShot tutorial, you'll learn how to leverage the new Upload Excel PCF developed by @agarwal_ritika and team. ...