Page 1 of 1

childBrowser.showWebPage - options not getting affected on IOS (i.e. showLocationBar: false)

Posted: Wed Jun 04, 2014 10:23 pm
by Yaniv

Hi,
While adding one/more options to the ChildBrowser its not taking affect at all in the opened page (showNavigationBar, showLocationBar, showAddress)
i.e.
window.plugins.childBrowser.showWebPage(filePath,{ showNavigationBar: false });

Step to reproduce:

  1. Open application on IOS (i'm using v6.0.1)

  2. Click on any date cell on the landing screen (this will access server to get the file and open it in child browser)

  3. check if in the child browser you have navigation bar (or any other option as you set)

    p.s.

  4. Application shared (HaZohar)

  5. The file that contains the JS to invoke the ChildBrowser call is implIOHelper.js

  6. As part of testing I even deleted and restore the childBrowser from "source" with no help.


childBrowser.showWebPage - options not getting affected on IOS (i.e. showLocationBar: false)

Posted: Wed Jun 04, 2014 11:53 pm
by Illya Stepanov

Hi Yaniv,

Thank you for detailed explanation of your issue. We will need some time to test it on a device and we'll post an update here.


childBrowser.showWebPage - options not getting affected on IOS (i.e. showLocationBar: false)

Posted: Thu Jun 05, 2014 4:18 am
by Yaniv

Thanks for the quick replay, currently the app rejected since the navigation bar


childBrowser.showWebPage - options not getting affected on IOS (i.e. showLocationBar: false)

Posted: Thu Jun 05, 2014 2:37 pm
by Maryna Brodina

Hello!

Please use inAppBrowser instead childBrowser http://docs.phonegap.com/en/2.4.0/cor...
You would need to replace code prewindow.plugins.childBrowser.showWebPage(filePath,{ showNavigationBar: false, showLocationBar: false, showAddress:false });/pre with the following prewindow.open(filePath,"_blank", "location=no");/preSimilar replacement should be done for openFileFromLocalStorage function also.


childBrowser.showWebPage - options not getting affected on IOS (i.e. showLocationBar: false)

Posted: Thu Jun 05, 2014 8:56 pm
by Yaniv

Thanks,
Its working as expected!

But keep in mind that I notice that any change that i'm doing in IOS ChildBrowser not taking affect.
For example, in order to have the ability to open local PDF file I used the code in the following post: https://getsatisfaction.com/apperyio/...
After that all working as expected/
BUT while I deleted ChildBrowser file and even the folder I was able to read the PDF file even WITHOUT this code (while I didn't upgrade my phonegap version....).
This should be checked since there are times that we are required to change the plugins in order to customize them to our needs.