Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

InAppBrowser vs Web view vs System Web Browser

Tags:

cordova

I'm working on a Cordova app at the moment, and none of the documentation is very clear about what the difference is between these three methods for displaying websites.

This is about the extent of the documentation, anywhere:

_self - opens in the Cordova WebView if url is in the white-list, else it opens in the InAppBrowser 
_blank - always open in the InAppBrowser 
_system - always open in the system web browser

Also, it doesn't state where I have to white-list URLs. Any suggestions there?

Phonegap Docs

like image 238
Dave Voyles Avatar asked Oct 15 '25 18:10

Dave Voyles


1 Answers

_system option will switch and open in the phone's default browser.

_blank option will slide open an new window with browser controls from within the app and opens in it, you can close it to go back the previous view.

_self option will open in the app window and cannot go back to previous view.


whitelisting should be done in config.xml, here is documentation for white listing: Cordova white-listing

like image 198
krisrak Avatar answered Oct 17 '25 16:10

krisrak