Do I need InAppBrowser to open device native browser? or just set target="_blank"?


#1

I found I can open device browser by using target="_blank", is it a normal way? If so, what is the function of InAppBrowser?


#2

I think, it should be target=_system.

target: The target in which to load the URL, an optional parameter that defaults to _self. (String)

_self: Opens in the Cordova WebView if the URL is in the white list, otherwise it opens in the InAppBrowser.
_blank: Opens in the InAppBrowse.
_system: Opens in the system’s web browser.

https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-inappbrowser/#cordovainappbrowseropen check this link for more info.