MrSwitch / hello.js

A Javascript RESTFUL API library for connecting with OAuth2 services, such as Google+ API, Facebook Graph and Windows Live Connect
https://adodson.com/hello.js/
MIT License
4.63k stars 548 forks source link

iOS 9 & Phonegap - redirect URL not redirecting back to app #325

Open optikalefx opened 9 years ago

optikalefx commented 9 years ago

So I have this working on older devices. On here, if I set my redirect URL to http://localhost/redirect As it says you can do in the demo, I get a [Error] Failed to load resource: Could not connect to the server. (redirect, line 0) as it tries to load up http://localhost/redirect

If I set the redirect to a remote hosted version like http://adodson.com/hello.js/redirect.html it loads up, but then throws this Failed to load webpage with error: The operation couldn’t be completed. (NSURLErrorDomain error -999.) and the hello polyfill file doesn't load. The URL is obviously correct and I can it hit from the browser but not from iOS.

I hosted my own and the hello.js file wouldn't load from the same error.

I thought it was the http vs https problem, but my code has the correct info.plist updates to allow http traffic. So that shouldn't be it either.

Not sure what else to test at this point.

elhamsarikhani commented 9 years ago

I have similar issue with my ionic app. After login, the screen freezes on iOS but it works well on Android.

iiitmahesh commented 8 years ago

How slove this propblem

login google: in my hybrid app

Error : Invalid Request

Invalid parameter value for redirect_uri : Missing authorotiy: file:///android-asset/www/index.html

elhamsarikhani commented 8 years ago

Has anyone find any solution for this issue? I am using Ionic and have the same issue. after login, it won't get redirected to the app.