I am developing Windows phone 8 PhoneGap app. Using navigator.app.exitApp() I am quiting the app from home screen in Windows phone 7. But when I tried the same in Windows ph
Navigator.app.exit()
will not exit the application it will crash the application.
In Windows Phone 8, it is handled so it will just throw an exception.
You will have to write the below code in page_BackKeyPress event in CordovaView.xaml.cs
Application.Current.Terminate();
It will exit your application on pressing hardware backbutton.