I found out the root cause of this problem. This was because I had updated both Microsoft.Azure.Mobile.Client
and Microsoft.Azure.Mobile.Client.SQLiteStore
from 4.1.2
to the lastest stable 4.2.0
version.
In the 4.2.1
version, if user canceled the login, the exception InvalidOperationException
would actually hit. But in the 4.2.0
version, the exception is not being hit upon canceling and instead causes the whole app to shut down.
So I wonder how to catch the cancel event by user, if anyone knows?