Passing parameter to a plugin results in failed build


If we include the following xml in our config.xml we get an error:

  <gap:plugin name="cordova-plugin-customurlscheme" source="npm">
      <param name="URL_SCHEME" value="VALUE" />


VoltBuilder run started at 2020-12-22 10:57:42.706111
Plan: Pro
Preflight Check
Parse Error in config.xml: mismatched tag: line 123, column 4
Build 1f72c6ab-fd68-4e71-99d8-d784281f01a7 failed

Line 123 is the closing tag β€œ</gap:plugin>”

Without it, the build succeeds. The same config.xml was building fine a couple of weeks ago.

How can we fix this?

Try this instead:

  <plugin name="cordova-plugin-customurlscheme">
      <variable name="URL_SCHEME" value="VALUE" />
1 Like

This works, thanks!

1 Like

The gap: prefixes were invented by PhoneGap. They don’t have meaning elsewhere.

We’ve adjusted VoltBuilder so it at least tolerates it.

Yes, this solution works. Thank you.