cordova - Adding plugin parameters through config.xml in Visual Studio doesn't work -
i using vs2013 update 4 apache cordova tools ctp 3.1. have been struggling installing 2 plugins both of them use <preference> tag in plugin.xml.
it same this suggestions in answers don't seem @ all. seems problem not specific facebook connect plugin, hence new question.
https://msdn.microsoft.com/en-us/library/dn757051.aspx#configuring shows adding parameters plugins supported through config.xml didn't have luck far.
<vs:plugin name="com.phonegap.plugins.facebookconnect" version="0.8.1"> <param name="app_id" value="12345678" /> <param name="app_name" value="my facebook app" /> </vs:plugin> i get:
typeerror: cannot use 'in' operator search 'app_id' in undefined
same goes following plugin: https://github.com/eddyverbruggen/custom-url-scheme
<vs:plugin name="nl.x-services.plugins.launchmyapp" version="3.2.2"> <param name="url_scheme" value="appname" /> </vs:plugin> where get:
typeerror: cannot use 'in' operator search url_scheme' in undefined
i have been struggling while there doesn't seem solution. has seen same problem , if so, found solution?
unfortunately, due cordova issue, can run problems plugin variables in cordova < 5.0.0. plugin variable information lost if install "plugin" fore "platform" can happen depending on workflow. do, however, function in cordova 5.0.0 can use vs 2015 rc. update 5.0.0 , use plugin variables, need update vs project , use command line.
- remove plugins variables via config designer.
- update cordova 5.0.0 via config designer (platforms > cordova cli)
- from command line:
- go project directory.
- type following substituting plugin name plugin wish add:
- npm install -g cordova
- cordova plugin add nl.x-services.plugins.launchmyapp --variable url_scheme=myscheme
this issue actively being worked things should improve in future. want take note of additional known issues pertaining 5.0.0 when using it.
https://www.visualstudio.com/explore/cordova-known-issues-vs
you want note bug reported facebook cordova plugin registry when building ios. cause issues vs due ntfs file-system on windows. here possible fix problem: https://github.com/chuxel/taco-tricks/tree/master/ios-plugin-symlink-fix
Comments
Post a Comment