android - c# Xamarin - Xamarin.Auth - get back to profilepage after fb login (How to use pages & NavigationPage) -


i'm having issue xamarin forms app .

public app() {     appid = this;      if(loggedin)                 {                     getprofilepage();                 }                 else                 {                     getsigninpage();                 }  }   public static void getprofilepage()         {             appid.mainpage = new profilerpage();         }          public static void getsigninpage()         {             appid.mainpage = new signinpage();         } 

my signin page empty , uses xamarin.auth create new activity , signin process . once authenticated , call

app.instance.successfulloginaction.invoke();  // custom droid renderer 

back in app.cs

public static action successfulloginaction         {                         {                 return new action(() => {                      appid.mainpage = new masterpage();                     // getprofilepage();                  });             }         } 

it not work , following errors :

xamarin java.lang.illegalstateexception: can not perform action after onsaveinstancestate

if try pop/push :

system.invalidoperationexception: sequence contains no elements


i'm guessing that's because i'm moving app pages activity app . idea how fix ?


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -