Hey, since plugin to handle back button doesn't work while exporting as universal app i want to do it manually (in code) but dunno how, because didn't even write anything in JS.
Could someone help me? I just want close app when it is on start screen, and go to start screen when it is on any other layout. (Now app goes to suspended mode when press back on any layout)
Where should i start?
Probably base.js file.
I Found this code and im prety sure that i have to handle it here:
backclick: [
function Application_backClickHandler(e, handled) {
if (handled) {
e._winRTBackPressedEvent.handled = true;
} else if (WinJS.Navigation.canGoBack) {
WinJS.Navigation.back();
e._winRTBackPressedEvent.handled = true;
}
}
],[/code:10teo5gt]
i can post whole code if needed.