EddyVerbruggen / Custom-URL-scheme

:link: Launch your Cordova/PhoneGap app by a Custom URL scheme like mycoolapp://
1.03k stars 365 forks source link

PhoneBuild: Variable(s) missing: URL_SCHEME #182

Open ondor opened 8 years ago

ondor commented 8 years ago

Hi, I have this weird situation where a few days ago. I had no problems with building and suddenly I cannot build any more with PhoneBuild. (cli: 5.2.0)

What I already did:

Your help would be really appreciated.

My web.config (replaced private info)

`<?xml version="1.0" encoding="utf-8"?>

appName appDescription privateCompany ` Output of PhoneBuild ``` ild Date: 2016-06-17 13:39:52 -0700 -------------------------------------------------------------------------------- PLUGIN OUTPUT -------------------------------------------------------------------------------- Fetching plugin "cordova-plugin-app-version@0.1.8" via npm Installing "cordova-plugin-app-version" at "0.1.8" for ios Fetching plugin "cordova-plugin-camera@2.2.0" via npm Installing "cordova-plugin-camera" at "2.2.0" for ios Fetching plugin "cordova-plugin-compat" via npm Installing "cordova-plugin-compat" at "1.0.0" for ios Fetching plugin "cordova-plugin-contacts@2.1.0" via npm Installing "cordova-plugin-contacts" at "2.1.0" for ios Dependent plugin "cordova-plugin-compat" already installed on ios. Fetching plugin "cordova-plugin-device@1.1.2" via npm Installing "cordova-plugin-device" at "1.1.2" for ios Fetching plugin "cordova-plugin-file@4.2.0" via npm Installing "cordova-plugin-file" at "4.2.0" for ios Dependent plugin "cordova-plugin-compat" already installed on ios. The Android Persistent storage location now defaults to "Internal". Please check this plugins README to see if you application needs any changes in its config.xml. If this is a new application no changes are required. If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add: "" to config.xml in order for the application to find previously stored files. Fetching plugin "cordova-plugin-geolocation@2.2.0" via npm Installing "cordova-plugin-geolocation" at "2.2.0" for ios Dependent plugin "cordova-plugin-compat" already installed on ios. Fetching plugin "cordova-plugin-inappbrowser@1.4.0" via npm Installing "cordova-plugin-inappbrowser" at "1.4.0" for ios Fetching plugin "cordova-plugin-network-information@1.2.1" via npm Installing "cordova-plugin-network-information" at "1.2.1" for ios Fetching plugin "cordova-plugin-dialogs@1.2.1" via npm Installing "cordova-plugin-dialogs" at "1.2.1" for ios Fetching plugin "cordova-plugin-splashscreen@3.2.2" via npm Installing "cordova-plugin-splashscreen" at "3.2.2" for ios Fetching plugin "cordova-plugin-whitelist@1.2.2" via npm Installing "cordova-plugin-whitelist" at "1.2.2" for ios Fetching plugin "cordova-plugin-compat@1.0.0" via npm Plugin "cordova-plugin-compat" already installed on ios. Making it top-level. Fetching plugin "cordova-plugin-screen-orientation@1.4.0" via npm Installing "cordova-plugin-screen-orientation" at "1.4.0" for ios Fetching plugin "cordova-plugin-datepicker@0.9.3" via npm Installing "cordova-plugin-datepicker" at "0.9.3" for ios Fetching plugin "phonegap-plugin-push@1.4.5" via npm Installing "phonegap-plugin-push" at "1.4.5" for ios "plugman install --platform ios --project /project --plugin cordova-plugin-customurlscheme@4.1.5": Fetching plugin "cordova-plugin-customurlscheme@4.1.5" via npm Installing "cordova-plugin-customurlscheme" at "4.1.5" for ios Failed to install 'cordova-plugin-customurlscheme':Error: Variable(s) missing: URL_SCHEME at /usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/install.js:347:23 at _fulfilled (/usr/local/lib/node_modules/pgb-plugman/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/usr/local/lib/node_modules/pgb-plugman/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/pgb-plugman/node_modules/q/q.js:749:13) at /usr/local/lib/node_modules/pgb-plugman/node_modules/q/q.js:557:44 at flush (/usr/local/lib/node_modules/pgb-plugman/node_modules/q/q.js:108:17) at doNTCallback0 (node.js:417:9) at process._tickCallback (node.js:346:13) Variable(s) missing: URL_SCHEME ```
ondor commented 8 years ago

I already fixed it myself.. apparently phonegap needs param instead of variable so did it..

Thanx anyway for the great plugin!

ronal2do commented 7 years ago

How you fix this?

ondor commented 7 years ago

​the web.config had an error. use param instead of variable and it worked like a charm.

the config will look like:

  <plugin name="cordova-plugin-customurlscheme" version="4.1.5">
    <paramname="URL_SCHEME" value="bloemetje" />
  </plugin>

Gijsbert​

On Mon, Sep 12, 2016 at 7:45 PM, Ronaldo Lima notifications@github.com wrote:

How you fix this?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EddyVerbruggen/Custom-URL-scheme/issues/182#issuecomment-246430626, or mute the thread https://github.com/notifications/unsubscribe-auth/ATEzH6FSBFzHKnG6aQByLDZ5g3tf1cJ8ks5qpY_AgaJpZM4I4uEf .

ronal2do commented 7 years ago

Tnks

ghost commented 4 years ago

how to do add https://urlname/ use plugin cordova-plugin-customurlscheme