uno.extensions icon indicating copy to clipboard operation
uno.extensions copied to clipboard

`IHostApplicationLifetime.StopApplication()` does not quit the app and an empty page appears

Open xperiandri opened this issue 1 year ago • 1 comments

Current behavior

Expected behavior

As Uno Platform uses generic host it is expected to respect its lifetime management. However IHostApplicationLifetime.StopApplication() does not quit the app but opens and empty page.

How to reproduce it (as minimally and precisely as possible)

Create a hosted service Inject IHostApplicationLifetime Call StopApplication() in the StartAsync method See a blank window

Environment

Nuget Package (s): Uno.Extentions.Navigation.UI

Package Version(s): 4.1.24

Affected platform(s):

  • iOS
  • macOS (AppKit)
  • Mac Catalyst
  • Android
  • WebAssembly
  • Windows
  • Skia (WPF)
  • Skia (GTK on Linux/macOS/Windows)
  • Skia (Linux Framebuffer)

Visual Studio:

  • 2022

Anything else we need to know?

See https://github.com/kevinchalet/openiddict-core/blob/maui_winui_sample/sandbox/OpenIddict.Sandbox.Maui.Client/MauiHostApplicationLifetime.cs#L18 and https://github.com/kevinchalet/openiddict-core/blob/8a9bb17553f587f3b63002f9e40873f95c203f8a/sandbox/OpenIddict.Sandbox.Maui.Client/MauiProgram.cs#L110

xperiandri avatar Jun 21 '24 01:06 xperiandri