oauth-io / oauth-phonegap

OAuth.io plugin for Apache Cordova/PhoneGap
195 stars 69 forks source link

Popup Error in Cordova 3.5.0-0.2.7 #35

Closed jbeuckm closed 10 years ago

jbeuckm commented 10 years ago

I have an Authio app that can connect to facebook and twitter successfully from the developer dashboard.

<access origin="*" /> appears in my config.xml inside the <widget> root node.

My project is Angular-based and I have these urls whitelisted with $sceDelegateProvider.resourceUrlWhitelist():

            'https://oauth.io/**',
            'https://graph.facebook.com/**',
            'https://api.twitter.com/**'

My auth function calls OAuth.initialize() with my key and the next line is OAuth.popup('facebook').

When run on Android, the popup just opens and closes quickly. On an iPhone, I get this error in the console:

webView:didFailLoadWithError - -1004: Could not connect to the server.

jbeuckm commented 10 years ago

Solved - I had one of the backends selected in the app dashboard instead of "client side flow"