Nick
Posts: 0
Joined: Wed Jul 24, 2013 7:28 am

iOS and childbrowser issue

Hello,
I have a problem with childbrowser and iOS.
I am developing a hybrid app and everything works ok on Android.
I have a button that goes to facebook to get the user to login/authorize a (facebook) app to post on his behalf. The redirect url is a web page on a server i use. On Android, the user clicks the button, a childbrowser opens with the url:
https://www.facebook.com/dialog/oauth...

When the user clicks the button from an iOS device (i tried on iOS 7 ipad and iOS 6 iphone), a childbrowser opens, but the page is blank and nothing happens.
The command i use on page click is
window.plugins.childBrowser.showWebPage(URL, { showLocationBar: true,showAddress :true, });

Thanks in advance for your help

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

iOS and childbrowser issue

Hi Nick,

We'll test this. I'll update.

Nick
Posts: 0
Joined: Wed Jul 24, 2013 7:28 am

iOS and childbrowser issue

Btw i just tested another time with different url.
i have a "post on twitter" button and on click i run the following javascript

window.plugins.childBrowser.showWebPage('https://twitter.com/share?text=SOMETE...', { showLocationBar: true,showAddress :true, });

Same deal. Works on Android but on iOS i get a white page with "loading..." on the status bar.

Thanks!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

iOS and childbrowser issue

Hi Nick,

There is a typo in your code. Try the following:
prewindow.plugins.childBrowser.showWebPage(URL, { showLocationBar: true,showAddress :true}); /pre
Does it work for you?

Nick
Posts: 0
Joined: Wed Jul 24, 2013 7:28 am

iOS and childbrowser issue

Do you mean the comma "after showAddress: true" ?
I removed it already and nothing changed. It works on Android but not iOS

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

iOS and childbrowser issue

HI Nick,

Sorry, it will take some additional time to test it.

Nick
Posts: 0
Joined: Wed Jul 24, 2013 7:28 am

iOS and childbrowser issue

Hey Katya,
Thanks for all your trouble but it seems the string i am passing to twitter and state parameter on facebook needs to be url encoded.
When i used

window.plugins.childBrowser.showWebPage('https://twitter.com/share?text=encode...', { showLocationBar: true,showAddress :true });

Everything works fine.

So thanks again for your time and please mark this as solved!

Return to “Issues”