Created
May 17, 2014 03:45
-
-
Save Injac/43dc2fd899124916085e to your computer and use it in GitHub Desktop.
Windows Phone 8.1 (WinRT, Universal Apps) Mobile Services - Important Snippet to avoid Exceptions if the user cancels the login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override void OnActivated(IActivatedEventArgs args) | |
{ | |
base.OnActivated(args); | |
#if WINDOWS_PHONE_APP | |
if (args.Kind == ActivationKind.WebAuthenticationBrokerContinuation) | |
{ | |
App.<mobileservice>.LoginComplete(args as WebAuthenticationBrokerContinuationEventArgs); | |
} | |
#endif | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment