I have the problem
In the first line of code of App OnStart I wrote Navigate(pgExpressions)
and it doesn't works . what is the problem ?
The problem is that App OnStart runs before the screens have completed loading. Since the screen doesn't exist yet you can't navigate to it.
Instead set the default screen to be a splash screen with a timer. When the timer expires have it do the navigate.
Its all dependent on timing, how big the screens are, and some settings in the power app. I agree it will work sometimes. But its not reliable to do it in AppStart. The workaround I've provided is the appropriate solution. The fact that it works elsewhere is not a guarantee that it should work in this case.
Thank you very much
May be do you know which application settings I need to check ? I tried to play with "Use non-blocking OnStart rule" . But It didn't help . I tried with Navigate in the first line .Nothing ! I want to try to find some ways not to add new screen
The setting that would normally affect this is the Non-Blocking onStart rule, which you've already seen. As I said, depending on a lot of factors trying to navigate to a screen using the OnStart code is unreliable. There really is no option other than using a specific start screen, like a splash screen.
Check out the News & Announcements to learn more.
Did you know that you can visit the Power Query Forum in Power BI and now Power Apps
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
Check out our new Discover Your Career Path blog post series and get all the details.