When a user cancels login by using the code below, then tries to login again, the application crashes. I guess it has something to do with the thread still running in the background for the first canceled login attempt. So my question is, how can I handle the cancelation when inside login page but the login is being manually canceled by user (either by tapping the close button on the login page or press the back button)?
try
{
MobileServiceUser user = await MyApp.App.Client.LoginAsync(this, MobileServiceAuthenticationProvider.Facebook, "myApp");
}catch(InvalidOperationException e)
{
//doesnt hit the exception when canceling
return false;
}
