Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
3.3.0
-
None
-
None
-
Mac OS X 10.8.5
Description
When adding a inappbrowser plugin to a fresh iOS platform, the plugin gets added to the iOS config.xml, but is not present in the cordova_plugins.js file.
In effect, the inappbrowser plugin is not available in the app.
Running "$ cordova build ios" from the CLI correctly updates the cordova_plugins.js file. I found mention of this workaround solution on https://groups.google.com/forum/#!msg/phonegap/QsOt-_1Rbic/5GpIIftyDPoJ
Running/building from XCode the plugin fails to load in the app.
Reproduce like this on Mac OS X:
$ cordova create test
$ cd test
$ cordova platform add ios
$ cordova plugin add org.apache.cordova.inappbrowser
Add <button onclick="window.open('http://www.apache.org/', '_blank','location=yes');">test</button> to the index.html.
Run on XCode simulator.
Observed behaviour: When clicking the button the app opens the link inside the current window
Desired behaviour: The app opens a new inappbrowser instance that can be closed from the toolbar button.
I don't know if this extends to adding other plugins from the CLI as well.
Attachments
Issue Links
- duplicates
-
CB-5647 cordova_plugins.js folder not populated with clobbers for Android
- Closed