Tried to VoltBuilder build an app with geolocation and file plugins. Build had been fine with PhoneGap Build. Did not build with Voltbuilder. Log:
VoltBuilder run started at 2020-08-10 13:01:53.480797
Plan: Indy
Preflight Check
Plugin ‘unknown name’ is not known to VoltBuilder. Please let us know if you need it.
Build ae79616e-2ab4-4b16-843f-7061ec1e78b4 failed
These are the possibly relevant sections of config.xml:
plugin name="cordova-plugin-geolocation" source="npm" spec="4.0.1"
variable name="GEOLOCATION_USAGE_DESCRIPTION" value="{id} Location use."
plugin>
plugin name="cordova-plugin-printer" spec="0.7.3"
plugin spec="https://github.com/gitawego/cordova-screenshot.git#1292d2e"
plugin name="cordova-plugin-file" source="npm" spec="6.0.1"
plugin name="cordova-plugin-file-transfer" source="npm" spec="1.7.1"
plugin name="cordova-plugin-device"
empfohlen von Phonegap log am 14.1.18 nach einfuegen von locked file und transfer
preference name=“AndroidPersistentFileLocation” value=“Compatibility”
ghenne
August 10, 2020, 5:22pm
2
Tip: If you’re pasting code, html or config files, surround it by triple back ticks (```) and it will be fomatted properly.
I tried to clean up your posting, but wasn’t sure what to do with the last part. Could you finish cleaning it up?
Better?
<?xml version="1.0" encoding="UTF-8"?>
<widget
xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "de.bsommer.FindeMich"
versionCode = "1"
android-versionCode="1"
version = "{version}">
<name>{title}</name>
<description>{description}</description>
<preference name='phonegap-version' value="cli-9.0.0" />
<preference name="android-minSdkVersion" value="23" />
<preference name="android-targetSdkVersion" value="28" />
<preference name="SplashScreenDelay" value="2000" />
<preference name="AutoHideSplashScreen" value="true" />
<plugin name="cordova-plugin-splashscreen" source="npm" />
<plugin name="cordova-plugin-statusbar" source="npm" />
<preference name="StatusBarOverlaysWebView" value="{phoneGapStatusBarOverlay}" />
<preference name="StatusBarBackgroundColor" value="{phoneGapStatusBarColor}" />
<preference name="StatusBarStyle" value="{phoneGapStatusBarStyle}" />
<icon src="{icon}" /> -->
<!-- <plugin name="cordova-plugin-geolocation" /> -->
<plugin name="cordova-plugin-geolocation" source="npm" spec="4.0.1" >
<variable name="GEOLOCATION_USAGE_DESCRIPTION" value="{id} Location use." />
</plugin>
<plugin name="cordova-plugin-printer" spec="0.7.3" />
<plugin spec="https://github.com/gitawego/cordova-screenshot.git#1292d2e" />
<plugin name="cordova-plugin-file" source="npm" spec="6.0.1" />
<plugin name="cordova-plugin-file-transfer" source="npm" spec="1.7.1"/>
<!--
Enable individual API permissions here.
The "device" permission is required for the 'deviceready' event.
-->
<plugin name="cordova-plugin-device" />
<!-- sample preference specifications -->
<preference name="permissions" value="none"/>
<!-- empfohlen von Phonegap log am 14.1.18 nach einfuegen von locked file und transfer -->
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
<!-- Platforms: Customize as needed. -->
<platforms>
<platform name="android" />
</platforms>
<plugin name="cordova-plugin-whitelist" source="npm" spec="1.3.3" />
<allow-navigation href="*" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="*" />
<allow-navigation href="data:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
</widget>
``
ghenne
August 10, 2020, 5:31pm
4
This plugin does not have a name
.
I do not yet know how to do it with the same plugin and a name.
Instead I tried another plugin, which has a name and is unknown.
<plugin name="cordova-custom-screenshot" source="npm" />
<!-- <plugin spec="https://github.com/gitawego/cordova-screenshot.git" /> -->
ghenne
August 10, 2020, 5:56pm
6
What is the exact message you are getting?
Looking at npm listing I think the plugin name needs to be set to “com.darktalker.cordova.screenshot”
ghenne
August 10, 2020, 10:14pm
9
That’s a different plugin, but a better candidate since it is more widely used. Neither is on the official list right now.
I added the name of the nearly 2 years old plugin. It is unknown too.
@Michael_Hill :
Thank you. I tried different plugins which hopefully would work with existing code. All unknown so far.
@Leader :
Could one get access to a list of known plugins? It is painful and time consuming to search for a plugin that could fit the purpose and then see that build is rejected because the plugin is called unknown.
ghenne
August 11, 2020, 11:08am
11
We have a meeting today where we will discuss this.
bsommer
August 11, 2020, 11:18am
12
Great. Thank you.
BTW: Just updated same app using screenshot plugin with PhoneGap Build. PGB apk works still with this plugin and making and saving screenshots.
ghenne
August 12, 2020, 5:54pm
13
com.darktalker.cordova.screenshot has been added.
Thanks. Meaning, that I can just replace the screeshot plugin with darktalker… ?
Thank you very much. Built and working!