White screen instead Page duaring navigation

Hello!

I have a problem with my project. I use MasterPageDetail in my XF app. Detail page is navigation page. To navigate ahead i use PushAsync in my Detail page. To close page manualy PopAsync.

When i tap only back button (iOS project) it works fine, but if i use PopAsync after Back button, i see white screen instead previous page in navigation stack. In this case in native renderer of my navigation page i get null in PopViewController and this raise exception.

Can somebody help me?

Best Answer

Answers

  • MarcosCobenaMarcosCobena ESUniversity ✭✭

    Hello Ivan,

    If I understood correctly, this would be the nav. stack prior to tapping on iOS Back button (left older, right newer):

    [MasterDetailPage, CurrentPage]

    If you tap on Back, and then call PopAsync(), the stack goes to:

    [] (empty)

    So for me it looks coherent to see some seconds the white screen, plus the exception thrown: there's no more views to pop.

    Does it make sense for you?

    Another thing would be to check where you're doing the PopAsync(), because you can be doing it under the NavigationPage inside the MasterDetail one, or outside of those, which then makes the behavior you have coherent again for me.

    Cheers,

    Marcos

  • IvanVlasenkoIvanVlasenko USMember

    I push many ContentPages in my nav.page, if i use only back button to go back - its ok.
    If i try to close current page by PopAsync (on button click for example) - its ok at first time, but after that i tap to Back button i see white screen - not some seconds - it stay until i tap back button again - then i catch exception on PopViewController.

  • DeniseGrovesDeniseGroves USMember ✭✭

    Did you get a fix for this? I am having the same problem

  • @DeniseGroves said:
    Did you get a fix for this? I am having the same problem

    I have many Renderers in iOS project, refactoring and decrease number of them solve problem.

  • CarLoOSXCarLoOSX USMember ✭✭

    I'm having this problem too with the last version of forms...

    THIS DO NOT HAVE ANY PROBLEM
    App.Current.MainPage = new LoginPage();

    THIS SHOWS A BLANK PAGE BEFORE APPEARING THE PAGE
    App.Current.MainPage = new NavigationPage(new LoginPage());

    Seems to be a problem with Navigationpage only in android.

  • seanydaseanyda GBMember ✭✭✭✭✭

    @CarLoOSX said:
    I'm having this problem too with the last version of forms...

    THIS DO NOT HAVE ANY PROBLEM
    App.Current.MainPage = new LoginPage();

    THIS SHOWS A BLANK PAGE BEFORE APPEARING THE PAGE
    App.Current.MainPage = new NavigationPage(new LoginPage());

    Seems to be a problem with Navigationpage only in android.

    Are you sure your not just missing the splash screen?

  • CarLoOSXCarLoOSX USMember ✭✭

    @seanyda said:

    @CarLoOSX said:
    I'm having this problem too with the last version of forms...

    THIS DO NOT HAVE ANY PROBLEM
    App.Current.MainPage = new LoginPage();

    THIS SHOWS A BLANK PAGE BEFORE APPEARING THE PAGE
    App.Current.MainPage = new NavigationPage(new LoginPage());

    Seems to be a problem with Navigationpage only in android.

    Are you sure your not just missing the splash screen?

    100%

Sign In or Register to comment.