VoltBuilder - problem with Phonegap plugin

Hi,

I just tried volt builder to create my Andorid APK, that I’ve create in past with PGB.
Build process was without error, but when I run the app I encounter an error.

Here the excerpt from config.xml (confidential data removed)::

<platform name="android">
 <plugin name="cordova-custom-config" source="npm"/>
<plugin name="cordova-plugin-intent" source="npm"/>

        <config-file target="AndroidManifest.xml" parent="./application/activity">
            <intent-filter>
                 <action android:name="android.intent.action.VIEW" />
                <action android:name="android.intent.action.SENDTO" />
                 <category android:name="android.intent.category.DEFAULT" />
               <category android:name="android.intent.category.BROWSABLE" />
                  <data android:scheme="" />
                <data android:mimeType="*/*" />
                <data android:pathPattern=".*\\.*" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.SEND_MULTIPLE" />
                 <category android:name="android.intent.category.DEFAULT" />
               <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="" />
                <data android:mimeType="*/*" />
                <data android:pathPattern=".*\\.*" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.SEND" />
                 <category android:name="android.intent.category.DEFAULT" />
               <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="" />
                <data android:mimeType="*/*" />
                <data android:pathPattern=".*\\.*" />
            </intent-filter>
        </config-file>
 <plugin name="cc.fovea.cordova.openwith" source="npm">
  <variable name="IOS_URL_SCHEME" value="cordovaopenwith2" />
    <variable name="IOS_UNIFORM_TYPE_IDENTIFIER" value="public.data" />
   <variable name="DISPLAY_NAME" value="removed" />
  <variable name="SHAREEXT_DEVELOPMENT_TEAM" value="removed" />
  <variable name="SHAREEXT_PROVISIONING_PROFILE" value="removed" />
  <variable name="IOS_GROUP_IDENTIFIER" value="removed" />
   <variable name="ANDROID_MIME_TYPE" value="*/*" />
   <variable name="ANDROID_EXTRA_ACTIONS" value="&lt;action android:name=&quot;android.intent.action.SEND_MULTIPLE&quot;/&gt;"/>     	
 </plugin>
</platform>

The app stops with error “Cannot read property ‘setVerbosity’ of undefined” on following code:

cordova.openwith.setVerbosity(cordova.openwith.DEBUG);

This probably means, that the openwith plugin is not properly included in compilation, for when compiling with Phonegap Build everything works.

TX
Oliver

Could you send me the long build id string that gets returned on a build? I’d like to see what is going on.

cc.fovea.cordova.openwith isn’t currently on the list of approved plugins.

returned on a build?

I’m sorry - but where do I find this information ?

Sorry I wasn’t clear. I need to the link address for the download. It will be something like this:

https://apps.volt.build/249aa432-5bff-4813-9166-afd8a8fd3df8/android.debug.apk

Thank you. I had a look at your project.

In your config.xml, you have something like this:

    <platform name="android">
        <plugin name="cordova-custom-config" source="npm" />
    </platform>

Cordova is ignoring <plugin when it is inside of <platform, so cordova-custom-config does not get loaded.

Digging into this some more, it looks like this is due to recent changes to Cordova, specifically in 9.0.0. (PhoneGap Build, since it uses an obsolete version of Cordova does not have this problem.)

Cordova has not documented what they are doing here very well, and it looks like further changes may be coming.

The answer for now seems to be to have separate config.xml files for iOS and Android.