Yaniv
Posts: 0
Joined: Wed Jun 12, 2013 8:38 pm

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

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.

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

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

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.

Yaniv
Posts: 0
Joined: Wed Jun 12, 2013 8:38 pm

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

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

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.

Yaniv
Posts: 0
Joined: Wed Jun 12, 2013 8:38 pm

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

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.

Return to “Issues”