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

updating platform in cordova causes error #73

Closed
mluria opened this issue Mar 30, 2015 · 4 comments
Closed

updating platform in cordova causes error #73

mluria opened this issue Mar 30, 2015 · 4 comments

Comments

@mluria
Copy link

mluria commented Mar 30, 2015

If I have the plugin added and then add another platform, I get the error below:

cordova platform add browser
...
Installing "nl.x-services.plugins.launchmyapp" for browser
Failed to install 'nl.x-services.plugins.launchmyapp':Error: Variable(s) missing: URL_SCHEME
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:299:23
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)

My workaround is to do:

cordova plugin rm nl.x-services.plugins.launchmyapp
cordova platform add browser
cordova plugin add https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin.git --variable URL_SCHEME=myscheme

It works but it is a pain.

Is there a solution to this?

m

and then

@EddyVerbruggen
Copy link
Owner

Perhaps it can be solved by moving this line inside the iOS and Android platform blocks. Is that something you're willing to test?

@mluria
Copy link
Author

mluria commented Mar 30, 2015

sure, I don't reallly understand what you want me to try, the code:

is already in plugin.xml in www

@mluria mluria closed this as completed Mar 30, 2015
@andruhon
Copy link
Contributor

I've tried to add <preference name="URL_SCHEME" value="myapp" /> into <platform name="android"> and after other global perferences:

<content src="index.html" />
<access origin="*" />
<preference name="URL_SCHEME" value="myapp" />

and still getting the message about missing variable

@andruhon
Copy link
Contributor

Created a new issue #76 with resolution of this problem

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

3 participants