Skip to content

Diagnosing a MAUI oddity launching and then transitioning pages

Notifications You must be signed in to change notification settings

RobbiewOnline/MauiAppWindowTest

Repository files navigation

Problems

Windows array becoming empty

I'm finding that the 'new' way of using the Application.Current.Windows often returns an empty array after the app is backgrounded, likely due to requesting permissions from the user.

How to re-create

(actually can't re-create in this sample app)

  • Run the app (debug is fine)
  • The windows array is populated with one Window
  • Request the permission (the app is backgrounded)
  • When resuming the list of Windows is cleared

Segfault

See GitHub issue 25446 dotnet/maui#25446

I suspect it's when the internet connectivity status changes

How to re-create

(actually not yet re-created in this sample app)

  • Run the app in release mode
  • Toggle wifi on/off
  • The app crashes

Environment

  • DotNet 9 RC 2 (9.0.100-rc.1.24452.12)
  • Building using JAVA_HOME=/Library/Java/JavaVirtualMachines/microsoft-17.jdk/Contents/Home
  • Device is
    • Samsung Galaxy S21 5G
    • One UI Version 6.1
    • Android version 14

About

Diagnosing a MAUI oddity launching and then transitioning pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages