We upgraded an Ionic App from Cordova to Capacitor and replaced Cordova’s InAppBrowser plugin with Capacitor Browser.
Now, however, the need has arisen to call scripts within a page and read the response, unfortunately there is no such function in the capacitor plugin. Not wanting to use an old cordova plugin, is there any solution for this ?
No, Capacitor Browser plugin uses different native APIs that don’t allow javascript injection because of security.
The only option is to keep using Cordova’s one or create a new “in app browser like” plugin that uses a WebView so you can use javascript injection as the Cordova one (or search if one from the community already exists)