Adding Cordova Plugins to Meteor Project with command line arguments -


in meteor project cordova plugin needs added. while documented in

https://github.com/meteor/meteor/wiki/meteor-cordova-phonegap-integration

the problem here plugin needs command line argument, meaning in common cordova project added so:

cordova plugin add pluginname --variable varname="var_value"

so how can add variable in meteor?

just adding argument gives back: "--variable: unknown option"

without argument error "failed install plugin:error: variable missing.."

another way clone project, upload github-account , put in variables hand.

meteor add cordova:pluginname@https://github.com/myname/prjname/tarball/sha-id

here error "must declare exact version of dependency". how shoud i?

meteor add cordova:pluginname@x.y.z@https://github.com/myname/prjname/tarball/sha-id doesn't work either?

or can 1 add plugin meteor project manually, meaning adding sourcefiles .meteor-directory?

any appreciated.

i couldn't make work way slava posted. don't know why actually. way worked on system plugin git clone plugin github, fill in keys, push github account , add meteor add cordova:plugin@https://github.com/myacc/prj/tarball/sha

edit:

it work, have put variable in single quotation marks, so

app.configureplugin('plugin.google.maps', {   'api_key_for_android': 'your_api_key' }); 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -