Search code examples
maui

How to close .NET MAUI App on iOS from code behind?


I want to close MAUI app from code behind

I'm using Application.Current.Quit()

on Android it works

but on iOS it doesn't work

Does everyone know is there any way to close MAUI app on iOS

Many thanks


Solution

  • You could try the following code:

    System.Environment.Exit(0);
    

    Hope it works for you.