[ad_1]
I’m constructing an app which makes use of cordova-plugin-inappbrowser for iOS.
On Android this plugin works completely nice however on iOS once I click on a hyperlink to the web site it opens inside the app.
I would love this to open within the programs default exterior browser.
When I attempt to open, it reveals under error.
undefined is just not an object (evaluating ‘$window.cordova.InAppBrowser.open’)
I’ve tried on some options talked about on web site however didnt work.
What I’ve already tried on are
-
change
$window.cordova.InAppBrowser.open(url, "_system");towindow.open(url, "_system");
=> the web site opens inside the app not the default browser -
could not take away plugin by way of command so deleted all recordsdata from a folder and tried
$cordova plugin add cordova-plugin-inappbrowser
=> errorInvalid Model: damaged -
addeed
<plugin title="cordova-plugin-inappbrowser" spec="model”>to config.xml
=> construct error -
added
<function title="InAppBrowser"><param title="ios-package" worth="CDVInAppBrowser"/>to ios config
=> errorUnhandled error. ('Parsing /config.xml failed') -
added
<choice title="InAppBrowserStatusBarStyle" worth="lightcontent" />to config.xml
=> construct success however nothing’s modified
Platform and Model
- Cordova v9.0.0
- ios 5.1.1
- X-code 13.2.1
- Node.js 16.16.0
- iPhone 15.5
├── cordova-android@9.0.0
├── cordova-ios@5.1.1
├── cordova-plugin-androidx-adapter@1.1.3 (git+ssh://git@github.com/dpa99c/cordova-plugin-androidx-adapter.git#2166b075d271103f84efc0d19b0f0ca1372cad2c)
├── cordova-plugin-customurlscheme@5.0.2
├── cordova-plugin-fcm@2.1.2 (git+ssh://git@github.com/fechanique/cordova-plugin-fcm.git#161d02dcebd0d798e017a2d16bc016b930da97b2)
├── cordova-plugin-file@6.0.2
├── cordova-plugin-inappbrowser@5.0.1-dev (git+ssh://git@github.com/apache/cordova-plugin-inappbrowser.git#bd02f453833c6ed9cd2b8d27212966a23fa0af13)
├── cordova-plugin-network-information@3.0.1-dev (git+ssh://git@github.com/apache/cordova-plugin-network-information.git#fcec956c1fd055e3a586b81eb2137bd7cee6f620)
├── cordova-plugin-whitelist@1.3.6-dev (git+ssh://git@github.com/apache/cordova-plugin-whitelist.git#9fafd026c4c10a60b61efb46344defe6da7b1861)
├── cordova-plugin-wkwebview-engine@1.2.2
├── cordova.plugins.diagnostic@6.1.1
├── mkdirp@1.0.4
└── phonegap-plugin-barcodescanner@8.1.1-dev (git+ssh://git@github.com/phonegap/phonegap-plugin-barcodescanner.git#bd82b3f54802b3d70cd81d6b3d0f3bd6e11332d7)
Any assist and recommendation might be appreciated.
Thanks.
[ad_2]
