You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DeviceGestureServiceOnGoBackRequested fires two times on Windows 10 Mobile. That leads to the app exiting instead of just navigation back to the main view. This is because of the Prism library listening for two events:
In Windows 10, the back button event is a universal concept. Back buttons implemented in hardware or in software will all raise the BackRequested event, so that's the one to handle.
SunboX
changed the title
DeviceGestureServiceOnGoBackRequested firest two times on Win10 UWP
DeviceGestureServiceOnGoBackRequested fires two times on Win10 UWP
May 30, 2017
The
DeviceGestureServiceOnGoBackRequested
fires two times on Windows 10 Mobile. That leads to the app exiting instead of just navigation back to the main view. This is because of the Prism library listening for two events:HardwareButtons.BackPressed
SystemNavigationManager.GetForCurrentView().BackRequested
Regarding to the Microsoft docs:
Source: https://docs.microsoft.com/en-us/windows/uwp/porting/w8x-to-uwp-porting-to-a-uwp-project#conditional-compilation-and-adaptive-code
..the hardware back button should only be handled on Windows Phone (...<=8.1 ... not Windows 10 Mobile)
The text was updated successfully, but these errors were encountered: