EddyVerbruggen / Custom-URL-scheme

:link: Launch your Cordova/PhoneGap app by a Custom URL scheme like mycoolapp://
1.03k stars 367 forks source link

Can't install with Meteor #246

Closed erperejildo closed 7 years ago

erperejildo commented 7 years ago

I'm using Meteor 1.4.2.6 and to install Cordova plugins I need to run this command meteor add cordova:plugin-name@version.

I can install with that this one but not with --variable URL_SCHEME=mycoolapp. With this I get this error:

--variable: unknown option. Usage: meteor add [package..]

layik commented 7 years ago

$ meteor add cordova:cordova-plugin-customurlscheme:@4.3.0 supposedly adds it to the meteor project but fails on build.

andruli commented 7 years ago

@erperejildo @layik you need to pass the configuration option in the mobile-config.js file:

App.configurePlugin('cordova-plugin-customurlscheme', {
  URL_SCHEME: 'mycoolapp',
});
erperejildo commented 7 years ago

Perfect, didn't know that way. @EddyVerbruggen can you add maybe this to the README for Meteor users?

EddyVerbruggen commented 7 years ago

@erperejildo I'd happily merge a PR.