First step is to install the "InAppBrowser" plugin. The name is a bit confusing but it will allow you to open links in the default browser when passing a certain parameter. Details about the plugin are available, but you'll just need to run the command.
Next we'll have to make a couple changes to your web app so that when window.open is called we'll inject the extra parameter '_system' which will open the link in the external browser. First look for a script tag that has the code $(document).bind("mobileinit")..., and inside that same script tag add the following code:
The last change is to add the following line
This is the path to cordova.js
if you followed the steps in WebViewer's cordova sample readme, there if you've changed the structure to fit your app then be sure that the URL correctly references cordova.js
.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales