Replies: 3 comments 1 reply
-
I'm facing a similar issue, working on Android as expected, but iOS's back button isn't firing the CanNavigateAsync method. Interestingly enough when I call navigationService.GoBackAsync(); in my ViewModel it does hit. Have you managed to find the cause for the problem why the iOS title view back button is not hitting CanNavigateAsync? Initially I thought it could be caused due to my custom |
Beta Was this translation helpful? Give feedback.
-
I have not managed to find the problem but is almost certainly related to this discussion I opened in May 2024, Correct use of NavigationPage |
Beta Was this translation helpful? Give feedback.
-
I've created an issue here |
Beta Was this translation helpful? Give feedback.
-
I have implemented IConfirmNavigationAsync.CanNavigateAsync on a ViewModel.
When the user presses the Back arrow in the Navbar in Android CanNavigateAsync is called and I can stop the Navigation if needed,
When the user presses the "Back" button in the Navigation Bar in iOS CanNavigateAsync is not called. I assume this should just work without me having to do anything particular.
The View\ViewModel is not being loaded modally and is simply using the INavigationService. What should I be doing?
Beta Was this translation helpful? Give feedback.
All reactions