Forum Xamarin.iOS

xamarin auth ios problem after google login/logout

pdanielpdaniel ROMember ✭✭

Hello,

I am using Xamarin Auth to authenticate the user in my app. After i login and then logout from the and try top login again i get this error :

2017-09-22 22:47:26.813 Cinema.iOS[8714:2469999] Warning: Attempt to present on whose view is not in the window hierarchy!

Does someone knows why do i get this error? The login button does not work. I need to restart the app for the button to work again.

thx

Answers

  • pdanielpdaniel ROMember ✭✭

    The entire error

    2017-09-22 22:47:26.813 Cinema.iOS[8714:2469999] Warning: Attempt to present <SFSafariViewController:                       
        0x7fdc1b72f940> on <Xamarin_Forms_Platform_iOS_PlatformRenderer: 0x7fdc1b423460> whose view is not in the 
        window hierarchy!
    
  • moljacmoljac HRBeta ✭✭✭

    Check your Xamarin.Forms navigation.

    Search for:

    Warning: Attempt to present on whose view is not in the window hierarchy!

    I think I wrote the answer already. There were several users, but the problem was thay did not use NavigationPage in their navigation.

  • fredyadriano90fredyadriano90 Member ✭✭

    @moljac Include a NavigationPage solved the issue for me

    Thanks

Sign In or Register to comment.