I have a banking app on my phone that switches to a plain (just some text) page when in "overview" mode - i.e. when you are scrolling through all open apps. I want to add the same to my app. So, when in sleep mode (and being viewed in overview mode) show a lock / text page. When the app resumes, go back to the page they were on.
I thought that would be simple, but then I am new to Xamarin! I tried:
Shell.Current.GoToAsync($"//{nameof(LockPage)}");
in OnSleep and
Shell.Current.GoToAsync("..");
in OnResume
But that seemed to have no effect. I've searched Google for ages and not found any examples.
Is this the correct approach, or am I in the wrong place completely?