Issues with InAppBrowser

Hello,
I’ve an app built with PGB that use a lot of these links:
<li data-icon="false"><a href="#" onclick="cordova.InAppBrowser.open('https://www.mydomain.com/assets/app/about/index.php','_blank','location=no,EnableViewPortScale=yes,closebuttoncaption=CLOSE');">About us</a></li>

Now I’m trying to migrate the app to VoltBuilder but none of these “InAppBrowser” links works (last version of the plugin, 4.0.0).
How can I fix it?
Thanks.

Are you running on Android or iOS?

iOS… the app is built for iOS and Android but at the moment I’ve tested with VoltBuilder only for iOS (debug).

Cordova is working hard to be ready for Apple’s June 30 deadline. Apps (built by VoltBuilder) are being accepted, which is good.

It looks like Cordova has some updates to this:

It’s worth looking at their blog for news:
https://cordova.apache.org/blog/

To override the Cordova library being used, see this:
https://volt.build/news/2020/06/28/cordova-versions.html

I’ve fixed including “cordova.js” in every single page of the app:

<script src="cordova.js" type="text/javascript"></script>
<script src="js/jquery.mobile.min.js"></script>
<script type="text/javascript" src="PushNotification.js"></script>
<script type="text/javascript" src="js/variables.js"></script>
<script type="text/javascript" src="js/onesignal.js"></script>
<script type="text/javascript" src="Globalization.js"></script>
<script type="text/javascript" src="js/index.js"></script>

Did that solve the problem?

Cordova expects Single Page Apps. If you have multiple pages, you need to include the cordova.js on each page.