nraboy / ng-cordova-oauth

AngularJS oauth library for use with Apache Cordova projects
https://www.thepolyglotdeveloper.com
MIT License
456 stars 199 forks source link

Error when loading facebook page #337

Open mukulsoftwap opened 6 years ago

mukulsoftwap commented 6 years ago

I have successfully logged in with facebook in android but not working in iphone

nraboy commented 6 years ago

What do your logs say?

mukulsoftwap commented 6 years ago

2018-02-03 21:12:36.324704+0530 Nestled Time[854:195907] webView:didFailLoadWithError - -999: The operation couldn’t be completed. (NSURLErrorDomain error -999.)

this is the log when its happens and show load error in url

nraboy commented 6 years ago

Are you using the standard InAppBrowser and web view are you using WKWebView or something custom Ionic made?

From what I understand WKWebView and the custom one Ionic made is not supported. They are doing things differently.

mukulsoftwap commented 6 years ago

We are not using WKWebView, using InAppBrowser.

nraboy commented 6 years ago

Have you done the proper whitelisting for the URLs used? iOS is funny when it comes to security. At what point in the OAuth flow does it fail? Does it start at all?

Without seeing your project it is difficult for me to troubleshoot.

matheusrocha89 commented 6 years ago

@mukulsoftwap I think this could be a problem with whitelisting. Are you doing correctly?