Page 1 of 2

inAppBrowser

Posted: Sun Aug 03, 2014 4:21 pm
by Kseniya

Why the ref doesn't close?

(function(context) {

Code: Select all

 var Login = {}; 

 Login.loginFacebook = function() { 
     var url = Recipe_Settings['face_url']; 
     var ref = window.open('[url=http://apache.org]http://apache.org[/url]', '_blank', 'location=no'); 
     ref.addEventListener('loadstart', this.getAccessToken);        
 }; 

 Login.getAccessToken = function(event) { 
     alert(event.url); 
     ref.close(); 
 }; 

 context.Login = Login; 

})(this);


inAppBrowser

Posted: Sun Aug 03, 2014 4:24 pm
by Illya Stepanov

Hi Kseniya,

On what device you're testing? And what OS version.


inAppBrowser

Posted: Sun Aug 03, 2014 4:34 pm
by Kseniya

Hi Ilya! Ipnone 5C ios7


inAppBrowser

Posted: Sun Aug 03, 2014 4:43 pm
by Kseniya

Hi Ilya! Ipnone 5C ios7


inAppBrowser

Posted: Sun Aug 03, 2014 4:46 pm
by Illya Stepanov

Could you please clarify, it doesn't close the inAppBrowser?


inAppBrowser

Posted: Sun Aug 03, 2014 4:54 pm
by Kseniya

The window is open, I see the alert. But ref doesn't close


inAppBrowser

Posted: Sun Aug 03, 2014 5:10 pm
by Illya Stepanov

Thanks, Kseniya. One more question - could you please clarify where do you place this code, how we can reproduce it?


inAppBrowser

Posted: Sun Aug 03, 2014 5:13 pm
by Kseniya

I create the Login.js file with this code. I'm calling the function Login.loginFacebook() on startScreen on deviceReady event


inAppBrowser

Posted: Sun Aug 03, 2014 5:15 pm
by Illya Stepanov

Ok, we will check it on the device.


inAppBrowser

Posted: Sun Aug 03, 2014 7:06 pm
by Illya Stepanov

I can't reproduce this behaviour. Could you please show us detailed screenshots where and how you're using this FB Login mechanism?

Or share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and tell us the app name, we'll take a closer look.
:: http://devcenter.appery.io/documentat...