Getting "One of your plugins requires a parameter: URL_SCHEME" error when build my app

  • 1
  • Problem
  • Updated 5 years ago
  • Not a Problem
I recently add a new feature in my (working) app, and when I try to build it on web I get this error:


Error - One of your plugins requires a parameter: URL_SCHEME - You can fix this here


I read that this could be a typo, but I checked the code with different xml validators, and it is ok. Also removed comments and change xml header, but still doesn't work.

Here is my config.xml file, so I hope that anyone of you can help my please; maybe I am missing something:



<?xml version='1.0' encoding='utf-8'?>
<widget
id="com.zpricing.zimplepr"
version="1.2"
xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0">

<name>zimplePR</name>

<description>
Mobile app for zimplePR.
</description>

<author email="contacto@zimplepr.com" href="http://www.zimplepr.com">
zimplePR Mobile Team
</author>

<!-- Default values -->
<content src="index.html" />
<icon src="icon.png" />
<gap:splash src="splash.png" />

<!-- Platforms -->
<gap:platform name="ios" />
<gap:platform name="android" />

<!--
If you do not want any permissions to be added to your app, add the
following tag to your config.xml; you will still have the INTERNET
permission on your app, which PhoneGap requires.
-->
<preference name="permissions" value="none"/>

<!-- Customize your app and platform with the preference element. -->
<preference name="phonegap-version" value="3.6.3" /> <!-- all: current version of PhoneGap -->
<preference name="orientation" value="default" /> <!-- all: default means both landscape and portrait are enabled -->
<preference name="target-device" value="universal" /> <!-- all: possible values handset, tablet, or universal -->
<preference name="fullscreen" value="true" /> <!-- all: hides the status bar at the top of the screen -->

<!-- Android customizations -->
<preference name="android-installLocation" value="auto" /> <!-- android: app install location. 'auto' will choose. 'internalOnly' is device memory. 'preferExternal' is SDCard. -->

<!-- iOS customizations-->
<preference name="webviewbounce" value="false" /> <!-- ios: control whether the screen 'bounces' when scrolled beyond the top -->
<preference name="prerendered-icon" value="true" /> <!-- ios: if icon is prerendered, iOS will not apply it's gloss to the app's icon on the user's home screen -->
<preference name="stay-in-webview" value="false" /> <!-- ios: external links should open in the default browser, 'true' would use the webview the app lives in -->
<preference name="ios-statusbarstyle" value="black-opaque" /> <!-- ios: black-translucent will appear black because the PhoneGap webview doesn't go beneath the status bar -->
<preference name="detect-data-types" value="true" /> <!-- ios: controls whether data types (such as phone no. and dates) are automatically turned into links by the system -->
<preference name="exit-on-suspend" value="false" /> <!-- ios: if set to true, app will terminate when home button is pressed -->
<preference name="show-splash-screen-spinner" value="true" /> <!-- ios: if set to false, the spinner won't appear on the splash screen during app loading -->
<preference name="auto-hide-splash-screen" value="false" /> <!-- ios: if set to false, the splash screen must be hidden using a JavaScript API -->
<preference name="AutoHideSplashScreen" value="false" />
<preference name="StatusBarOverlaysWebView" value="true" /> <!-- ios: On iOS 7, make the statusbar overlay or not overlay the WebView at startup. -->
<preference name="android-windowSoftInputMode" value="stateVisible|adjustPan" />

<preference name="SplashScreenDelay" value="3000" />
<preference name="SplashScreen" value="res/screens/android/screen-ldpi-portrait.png" />

<gap:config-file platform="ios" parent="UIStatusBarHidden">
<true/>
</gap:config-file>

<gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance">
<false/>
</gap:config-file>
<gap:config-file platform="ios" parent="CFBundleShortVersionString">
<string>12</string>
</gap:config-file>

<gap:plugin name="nl.x-services.plugins.launchmyapp" version="3.2.0">
<param name="URL_SCHEME" value="zimplepr" />
</gap:plugin>

<!-- Core plugins -->
<!--<gap:plugin name="org.apache.cordova.console" version="0.2.7" />-->
<gap:plugin name="org.apache.cordova.device" version="0.2.12" /> <!-- This plugin provides access to the info of the device's hardware and software -->
<gap:plugin name="org.apache.cordova.device-motion" version="0.2.10" /> <!-- This plugin provides access to the device's accelerometer -->
<gap:plugin name="org.apache.cordova.dialogs" version="0.2.6" /> <!-- This plugin provides access to some native dialog UI elements. -->
<gap:plugin name="org.apache.cordova.vibration" version="0.3.7" /> <!-- This plugin provides a way to vibrate the device. -->
<gap:plugin name="org.apache.cordova.splashscreen" version="0.3.4" /> <!-- This plugin give access to show and hide the splashscreen -->
<gap:plugin name="com.phonegap.plugins.pushplugin" version="2.4.0"> <!-- This plugin allows your application to receive push notifications on both Android and iOS devices -->
<param name="onload" value="true"/>
</gap:plugin>
<gap:plugin name="com.phonegap.plugin.statusbar" /> <!-- Plugin to solve the status bar problem in iOS-->
<gap:plugin name="org.apache.cordova.inappbrowser" version="0.3.3" />
<gap:plugin name="com.ionic.keyboard" version="1.0.3" />

<feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" onload="true" />
</feature>
<feature name="InAppBrowser">
<param name="ios-package" value="CDVInAppBrowser" />
</feature>
<feature name="Keyboard">
<param name="ios-package" value="IonicKeyboard" onload="true" />
</feature>

<!-- Define app icon for each platform. -->

<!-- Android -->
<icon src="res/icon/android/icon-36-ldpi.png" gap:platform="android" gap:qualifier="ldpi" />
<icon src="res/icon/android/icon-48-mdpi.png" gap:platform="android" gap:qualifier="mdpi" />
<icon src="res/icon/android/icon-72-hdpi.png" gap:platform="android" gap:qualifier="hdpi" />
<icon src="res/icon/android/icon-96-xhdpi.png" gap:platform="android" gap:qualifier="xhdpi" />

<!-- iOS 7.0+ -->
<!-- iPhone / iPod Touch -->
<icon src="res/icon/ios/icon-60.png" gap:platform="ios" width="60" height="60" />
<icon src="res/icon/ios/icon-60@2x.png" gap:platform="ios" width="120" height="120" />
<!-- iPad -->
<icon src="res/icon/ios/icon-76.png" gap:platform="ios" width="76" height="76" />
<icon src="res/icon/ios/icon-76@2x.png" gap:platform="ios" width="152" height="152" />
<!-- Settings Icon -->
<icon src="res/icon/ios/icon-small.png" gap:platform="ios" width="29" height="29" />
<icon src="res/icon/ios/icon-small@2x.png" gap:platform="ios" width="58" height="58" />
<!-- Spotlight Icon -->
<icon src="res/icon/ios/icon-40.png" gap:platform="ios" width="40" height="40" />
<icon src="res/icon/ios/icon-40@2x.png" gap:platform="ios" width="80" height="80" />

<!-- iOS 6.1 -->
<!-- iPhone / iPod Touch -->
<icon src="res/icon/ios/icon.png" gap:platform="ios" width="57" height="57" />
<icon src="res/icon/ios/icon@2x.png" gap:platform="ios" width="114" height="114" />
<!-- iPad -->
<icon src="res/icon/ios/icon-72.png" gap:platform="ios" width="72" height="72" />
<icon src="res/icon/ios/icon-72@2x.png" gap:platform="ios" width="144" height="144" />
<!-- iPhone Spotlight and Settings Icon -->
<icon src="res/icon/ios/icon-small.png" gap:platform="ios" width="29" height="29" />
<icon src="res/icon/ios/icon-small@2x.png" gap:platform="ios" width="58" height="58" />
<!-- iPad Spotlight and Settings Icon -->
<icon src="res/icon/ios/icon-50.png" gap:platform="ios" width="50" height="50" />
<icon src="res/icon/ios/icon-50@2x.png" gap:platform="ios" width="100" height="100" />

<!-- Define app splash screen for each platform. -->
<!-- Android splash screens-->
<!-- Portrait -->
<gap:splash src="res/screens/android/screen-ldpi-portrait.png" gap:platform="android" gap:qualifier="port-ldpi" />
<gap:splash src="res/screens/android/screen-mdpi-portrait.png" gap:platform="android" gap:qualifier="port-mdpi" />
<gap:splash src="res/screens/android/screen-hdpi-portrait.png" gap:platform="android" gap:qualifier="port-hdpi" />
<gap:splash src="res/screens/android/screen-xhdpi-portrait.png" gap:platform="android" gap:qualifier="port-xhdpi" />
<!-- Landscape -->
<gap:splash src="res/screens/android/screen-ldpi-landscape.png" gap:platform="android" gap:qualifier="land-ldpi" />
<gap:splash src="res/screens/android/screen-mdpi-landscape.png" gap:platform="android" gap:qualifier="land-mdpi" />
<gap:splash src="res/screens/android/screen-hdpi-landscape.png" gap:platform="android" gap:qualifier="land-hdpi" />
<gap:splash src="res/screens/android/screen-xhdpi-landscape.png" gap:platform="android" gap:qualifier="land-xhdpi" />

<!-- iOs splash screens -->
<!-- iPhone and iPod touch -->
<gap:splash src="res/screens/ios/Default~iphone.png" gap:platform="ios" width="320" height="480" />
<gap:splash src="res/screens/ios/Default@2x~iphone.png" gap:platform="ios" width="640" height="960" />

<!-- iPhone 5 / iPod Touch (5th Generation) -->
<gap:splash src="res/screens/ios/Default-568h@2x~iphone.png" gap:platform="ios" width="640" height="1136" />
<!-- iPad -->
<gap:splash src="res/screens/ios/Default-Portrait~ipad.png" gap:platform="ios" width="768" height="1024" />
<gap:splash src="res/screens/ios/Default-Landscape~ipad.png" gap:platform="ios" width="1024" height="768" />

<!-- Retina iPad -->
<gap:splash src="res/screens/ios/Default-Portrait@2x~ipad.png" gap:platform="ios" width="1536" height="2048" />
<gap:splash src="res/screens/ios/Default-Landscape@2x~ipad.png" gap:platform="ios" width="2048" height="1536" />

<!-- iPhone 6 -->
<gap:splash src="res/screens/ios/Default-667h@2x~iphone.png" gap:platform="ios" width="750" height="1334" />
<!-- iPhone 6+ -->
<gap:splash src="res/screens/ios/Default-736h@3x~iphone.png" gap:platform="ios" width="1080" height="1920" />

<!--
Define access to external domains.

<access /> - a blank access tag denies access to all external resources.
<access origin="*" /> - a wildcard access tag allows access to all external resource.
<access origin="http://phonegap.com" /> - allow any secure requests to http://phonegap.com/
<access origin="http://phonegap.com" subdomains="true" /> - same as above, but including subdomains, such as http://build.phonegap.com/
Otherwise, you can specify specific domains:
-->
<access origin="*" subdomains="true"/> <!-- allow local pages -->
<access origin="http://www.zimplepr.com" subdomains="true"/>

</widget>

Photo of Daniel Batalla

Daniel Batalla

  • 2 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of Daniel Batalla

Daniel Batalla

  • 2 Posts
  • 0 Reply Likes
Ok, I solve this building my app direct on command line with phonegap remote build ios

Maybe it will help someone with the same problem.