I'm working on my first Xamarin Forms project and have been relatively closely following the Enterprise Application Patterns using Xamarin.Forms eBook but am currently confounded by a bit of functionality we need to provide.
A user can choose to "secure" the app with a PIN. The problem I'm having is working out how to effectively navigate between the PincodeView which contains a FormsPinView and a label and the other views that need to use it.
As an example, from the SettingsView a may turn off the use of a PIN. If they attempt this then I need to get the user to re-enter their PIN to ensure that it's not one of their pesky children. I had planned to simply navigate to the PincodeView, use the MessagingCenter to inform the SettingsView whether the PIN was entered correctly, navigate back to the SettingsView and then remove the PincodeView from the NavigationStack.
Unfortunately, as has been noted on this forum before you cannot remove the last page in the NavigationStack.
The use case above is but one example and the PincodeView may be used from any view in the app due to an idle timeout that is yet to be implemented.
I have done quite a bit of googling to no avail. A colleague suggested that I implement some form of popup view to enter the PIN. While that may work (and look a tad sexier than a full screen view) it seems a bit like avoiding the design problem rather than understanding it (not to mention the fact that my scratchpad project can no longer be deployed to an Android emulator once it was included).
Anyway, I'll stop rambling but would be very interested in any way that you may have solved this design problem in the past.
PS. My apologies for the lack of links. I had many references in here but as a noob I'm not permitted to provide links...