FreshMvvm PushNewNavigationServiceModal not working
I'm trying to change from FreshNavigationContainer to FreshMasterDetailNavigationContainer when the user is loggedin within the method SuccessfulLogin by using freshMvvm method PushNewNavigationServiceModal but nothing is happening.
public void SuccessfulLogin()
{
App.IsLoggedIn = true;
var masterDetailNav = new FreshMasterDetailNavigationContainer();
masterDetailNav.Init("Menu");
masterDetailNav.AddPage<ProfilePageModel>("Profile", null);
CoreMethods.PushNewNavigationServiceModal(masterDetailNav);
}
Edit : I just noticed that after using this method navigation isn't working anymore.
If possible can you give more details about the complete navigation setup you have or provide a sample, email me directly if you like. This method works for the majority of cases but I'm not sure why it doesn't work for you.
I'm experiencing a similar issue. All inits fire, and no errors crash the app but nothing navigates to a new tabbed page.
Were you guys able to resolve this?
var page = FreshPageModelResolver.ResolvePageModel<InitialLoginPageModel>(); var basicNavContainer = new FreshNavigationContainer(page); MainPage = basicNavContainer;
Then click something, fires command and pushes to another page:
await CoreMethods.PushPageModel<SignInPageModel>(null, false,true);
Then click sign in, fires command and do this:
var tabbedNavigation = new FreshTabbedNavigationContainer(); tabbedNavigation.AddTab<OnePageModel>("One", "one.png"); tabbedNavigation.AddTab<TwoPageModel>("Two", "two.png"); tabbedNavigation.AddTab<ThreePageModel>("Three", "three.png"); await CoreMethods.PushNewNavigationServiceModal(tabbedNavigation);
Any word on this? Also just ran into the same problem. Much like above all inits fire but no navigation change.
I have a master detail view as main and I'm trying to get a tab view to appear after a listview item is clicked.