找到你要的答案

Q:How to add plugin variable in meteor cordova?

Q:如何在流星科尔多瓦添加插件变量吗?

How to pass variable in cordova plugin??

In normal cordova

cordova -d plugin add /path/to/cloned/phonegap-facebook-plugin --variable APP_ID="123456789" --variable APP_NAME="myApplication"

In meteor I tried

App.configurePlugin('nl.x-services.plugins.googleplus@https', {
  'APP_ID': '12345789',
  'APP_NAME': 'app_name'
});

But I got

Error while running for mobile platforms: Failed to install plugin com.phonegap.plugins.facebookconnect: Variable(s) missing (use: --variable APP_ID=value --variable
APP_NAME=value).

如何在科尔多瓦插件通过变量吗??

在正常的科尔多瓦

cordova -d plugin add /path/to/cloned/phonegap-facebook-plugin --variable APP_ID="123456789" --variable APP_NAME="myApplication"

流星中我试过

App.configurePlugin('nl.x-services.plugins.googleplus@https', {
  'APP_ID': '12345789',
  'APP_NAME': 'app_name'
});

但我得到了

Error while running for mobile platforms: Failed to install plugin com.phonegap.plugins.facebookconnect: Variable(s) missing (use: --variable APP_ID=value --variable
APP_NAME=value).
answer1: 回答1:

the plugin name is com.phonegap.plugins.facebookconnect, not nl.x-services.plugins.googleplus@https

插件的名称是不com.phonegap.plugins.facebookconnect,NL。x-services。插件。googleplus @ HTTPS

javascript  cordova  meteor