Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Error: Variable(s) missing: URL_SCHEME" when restoring plugins on platform add #76

Closed
andruhon opened this issue Apr 16, 2015 · 4 comments

Comments

@andruhon
Copy link
Contributor

cordova-cli 4.3.0
android-platform 3.7.1

When you do

cordova plugin add https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin.git --variable URL_SCHEME=mycoolapp --save

It for some reason saves URL_SCHEME as <param name="URL_SCHEME" value="slingshotapp" />
And later if you try to update or add a platform you'll get an error like this:

Error: Variable(s) missing: URL_SCHEME

The URL_SCHEME variable should be saved as variable, not as param, here's an example:

    <feature name="Custom URL scheme">
        <param name="id" value="nl.x-services.plugins.launchmyapp" />
        <param name="url" value="https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin.git" />
        <variable name="URL_SCHEME" value="mycoolapp" />
    </feature>

I think it is something worth to document in README

@andruhon
Copy link
Contributor Author

Created the MR #77 with updated README

@wallstudios
Copy link

I noticed the same issue today. As it had an error it was causing other issues with plugins. quick fix for me was to remove your plugin first then remove platform (I was doing a rebuild to get something working so needed to remove) and then re add platform. This loaded all of the other plugins correctly then I added back in yours with the --variable. worked fine that way.

@EddyVerbruggen
Copy link
Owner

@andruhon This sounds like a Plugman issue to me. I will add it to the readme, thanks for the PR!

@andrewoodleyjr
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants