exit app

Hi, I want to exit app when backbutton pressed. But I don’t know what I should use to command such as exit, finish, close etc. Can you help me? Thanks.

ux:

<WhileTrue ux:Name="backPulse" Value="false">
    <Callback Handler="{exitingApp}"/>
</WhileTrue>
<OnBackButton>
  <Pulse Target="backPulse" />
</OnBackButton>

javascript:

function exitingApp(args)
        {
            //I don't know what command I should use here
        };

Hi, you can check this thread for a solution: https://www.fusetools.com/community/forums/permalink/82984c7c-7084-46ca-886f-d2b095246fd9

Hi there,
Is there any non 3rd party option for closing app in js?

Currently there isn’t, but we’re planning on introducing one.