How to Exit a .NET MAUI App

Programming

Have you ever wondered what is the correct way to exit an .NET MAUI app on different devices?  Application.Current.Quit wont work on iOS or Android - and that has a simple reason: by design, the philosophy on mobile devices is that apps simply should not quiet themselves. Because a coldstart of an app takes a little longer than just re-activating it.

But when you have a professional looking navigation menu, an "Exit" item would look even more professional. What a dilemma. If you don't care about the "mobile apps should not quite themselves" philosophy then here's the way to do so.

Read more...