Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

NSURLErrorDomain error - 999 on iOS with OAuth2 #41

Closed
Iyashu5040 opened this issue Aug 19, 2013 · 0 comments
Closed

NSURLErrorDomain error - 999 on iOS with OAuth2 #41

Iyashu5040 opened this issue Aug 19, 2013 · 0 comments
Assignees
Milestone

Comments

@Iyashu5040
Copy link

When using OAuth2Authenticator to login with facebook on iOS an error message keeps popping up with a description that says there is an NSURLErrorDomain error - 999. This message repeatedly pops up, making login almost impossible. At the moment I've created my own version of Xamarin.Auth that ignores that specific error code and I'm having no trouble logging in. The overridden LoadFailed method in the WebViewDelegate in WebAuthenticatorController can be changed as follows:

public override void LoadFailed(UIWebView webView, NSError error)
    {
    controller.activity.StopAnimating();

                webView.UserInteractionEnabled = true;

                if (error.Code != -999)
                {
                    controller.poster.OnError(error.LocalizedDescription);
                }
     }

I've adapted the solution from this forum thread on the Apple Support Community: https://discussions.apple.com/thread/1727260

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants