When I press on the hardware back button in my uwp app, the app closes. I use the hamburger interface from Template 10.
I added the following code in the app.xaml.cs and in het schell.xaml.cs but when I press back it says that the parameter canGoBack is false and closes the app.
public Shell(INavigationService navigationService)
{
    Instance = this;
    InitializeComponent();
    // setup for static calls
    Window = WindowWrapper.Current();
    MyHamburgerMenu.NavigationService = navigationService;
    // any nav change, reset to normal
    navigationService.FrameFacade.Navigated += (s, e) =>
        BusyModal.IsModal = LoginModal.IsModal = false;
    SystemNavigationManager.GetForCurrentView().BackRequested += Shell_BackRequested;
}
private void Shell_BackRequested(object sender, BackRequestedEventArgs e)
{
    MyHamburgerMenu.NavigationService.GoBack();
}