如何在流星线中添加插件变量?

时间:2015-05-02 08:35:46

标签: javascript cordova meteor

如何在cordova插件中传递变量?

在普通的cordova中

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).

1 个答案:

答案 0 :(得分:2)

插件名称为com.phonegap.plugins.facebookconnect,而不是nl.x-services.plugins.googleplus@https