Kseniya
Posts: 0
Joined: Tue Mar 04, 2014 9:43 am

inAppBrowser

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);

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

inAppBrowser

Hi Kseniya,

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

Kseniya
Posts: 0
Joined: Tue Mar 04, 2014 9:43 am

inAppBrowser

Hi Ilya! Ipnone 5C ios7

Kseniya
Posts: 0
Joined: Tue Mar 04, 2014 9:43 am

inAppBrowser

Hi Ilya! Ipnone 5C ios7

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

inAppBrowser

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

Kseniya
Posts: 0
Joined: Tue Mar 04, 2014 9:43 am

inAppBrowser

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

inAppBrowser

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

Kseniya
Posts: 0
Joined: Tue Mar 04, 2014 9:43 am

inAppBrowser

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

inAppBrowser

Ok, we will check it on the device.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

inAppBrowser

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...

Return to “Issues”