![]() ![]() When the navigation stack isn't restored navigate to the first page, Restore the saved session state only when appropriate ToastNotifier.SendToastPlainText(ex.Message) Įlse if (args.PreviousExecutionState = ApplicationExecutionState.Terminated) RootFrame.SetNavigationState((('|') + 1)) If (!String.IsNullOrEmpty(args.Arguments)) //if loaded from a secondary tile, start at the correct folder StorageFolder startFolder = KnownFolders.PicturesLibrary SuspensionManager.RegisterFrame(rootFrame, "AppFrame") Create a Frame to act as the navigation context and associate it with ![]() SettingsPane.GetForCurrentView().CommandsRequested += OnSettingsPaneCommandsRequested add support for custom settings commands (About, Privacy Statement, etc) If (args.PreviousExecutionState = ApplicationExecutionState.Running) Do not repeat app initialization when already running, just ensure that protected override async void OnLaunched(LaunchActivatedEventArgs args) I know it is not something that you can just run, but it shows that I am not doing any real processing on startup. My app keeps failing the content validation phase due to the performance test, which is either startup or suspend speed.īelow is the exact code from my project. Even with a blank project, I will see the splash screen for roughly 2 seconds, and there is really no code going on during startup. It will only occasionally take longer, but every time it launches, my code only take about 0.5 seconds toįinish, and the vast majority of the startup time happens before my code is ever called. It is hard for me to test anything, since the app almost always opens up in about 2 seconds, and shouldn't have any problem passing validation. Is there any way to control how long Windows takes to startup an app before the OnLaunched method is called? Is there any reason that I get this error from the content validation phase of testing, and not the app certification kit phase? I also have very little in the way of resources in my app, so I don't see that as an issue. Start of that method to the display of the first screen is about 1 second. It can occasionally take longer (which I assume is why it is failing), but when timing I track startup time, almost all of it happens before the OnLaunched method is ever called, so I have not control over it. When testing on a Dell Inspiron Duo (small low-powered netbook with rotational hard drive), it always starts up within roughly 2-3 seconds, and suspends almost instantly. Looking at the requirement mentioned, it seems to be checking that the app starts in under 5 seconds, and suspends in underĢ. ![]() It passes the certification kit on my computer fine (even on a slow VM), and it says that it passes the store's version as well. "This app failed the performance test in the Windows App Certification Kit." (requirement 3.8) It then fails on the Content Validation phase, and one of the errors is: I have submitted my app to the store, and it passed the first three phases, including running through the Windows App Certification Kit. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |