Inappbrowser cordova plugin deployment issue #407
Replies: 1 comment 1 reply
-
This shouldn't be necessary.
This might be what is believed, but I strongly suspect that something isn't the same and it might not be obvious. Here are some recommendations, broken down in two main parts.. First, make sure your project setup is reproducible.What I mean by this is you should be able to git clone (or whatever what your version control system is) and pull down a fresh checkout of your cordova project. If you do not use a version control system, I'd strongly recommend using one. For the rest of this post, I'd be assuming you're using git. I'll also assume that all generated files are in your
So given those assumptions, at minimum the steps to checkout and build/run a project would be:
Note that to use If these steps do not produce an expected working build, then they definitely won't work on Jenkins. So the focus should be what is causing this flow to fail. Now on jenkins,If all above is good 👍 then I'd recommend enabling the feature that always creates a fresh build environment for each task. I forget what the feature is called, it's been awhile since I used Jenkins. But there will be a configuration option that forces a fresh workspace for your task on every run. This will obviously be much slower as this means it will need to pull down your project, npm install and resetup all your plugins when you add your platform(s) (e.g. everything in step 1) but this flow should guarantee that the project state is identical. If the problem only produces itself if you're reusing a workspace, then there might be a problem where something is modifying something that it shouldn't. This might not answer your question/problem but hopefully these pointers will help get you on the right track. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using angular14 , cordova 11.0.0, and ios 6.2.0, I installed Inappbrowser cordova plugin and then built and it works perfectly on my local application. Afterward, I deployed it using Jenkins but the plugin doesn't work on the deployed version, I took the deployed project folder and tested it on Xcode, it shows this error :
typeerror: undefined is not an object (evaluating 'cordova.inappbrowser.open')
knowing that the installation and configuration are the same as the local one.
I tried :
<plugin name="cordova-plugin-inappbrowser" />
and<feature name="InAppBrowser"><param name="ios-package" value="CDVInAppBrowser" /></feature>
in config.xmlnone of that worked
But when I removed the IOS platform and installed IOS 6.3.0 I made the plugin work locally, then deployed it on Jenkins but again it doesn't work on the deployed version
Beta Was this translation helpful? Give feedback.
All reactions