[ https://issues.apache.org/jira/browse/CB-8007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14317035#comment-14317035 ]
Alan Schultz commented on CB-8007: ---------------------------------- I am actually installing these exact plugins, Launch My App and Facebook Connect. This used to work prior to Cordova CLI 4. Both plugins should have a plist entry for CFBundleURLTypes -> CFBundleURLSchemes in *-Info.plist. It seems in my case only the FIRST plugin's changes stick, not the second. The steps I am taking to reproduce using Cordova CLI 4.0.0 through 4.2.0 are... $ cordova platform add ios $ cordova -d plugin add https://github.com/phonegap/phonegap-facebook-plugin.git --variable APP_ID="appid1234" --variable APP_NAME="appname" $ cordova -d plugin add https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin.git --variable URL_SCHEME=appscheme I expect to have 2 entries under CFBundleURLTypes -> CFBundleURLSchemes, but I only get an entry for the first plugin that is installed, in this case Facebook Connect plugin. The LaunchMyApp plugin's plist entry is ignored in this case. Expected *-Info.plist result ... <key>FacebookAppID</key> <string>appid1234</string> <key>FacebookDisplayName</key> <string>appname</string> <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLSchemes</key> <array> <string>fbappid1234</string> </array> </dict> <dict> <key>CFBundleURLSchemes</key> <array> <string>appscheme</string> </array> </dict> </array> ... Actual *-Info.plist result: ... <key>FacebookAppID</key> <string>appid1234</string> <key>FacebookDisplayName</key> <string>appname</string> <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLSchemes</key> <array> <string>fbappid1234</string> </array> </dict> </array> ... Only when I version back to 3.6.3-0.2.13 does the correct *-Info.plist variables get created. > Two cordova plugins modifying “*-Info.plist” CFBundleURLTypes > ------------------------------------------------------------- > > Key: CB-8007 > URL: https://issues.apache.org/jira/browse/CB-8007 > Project: Apache Cordova > Issue Type: Bug > Components: CLI, CordovaLib > Affects Versions: 3.5.0 > Reporter: Miquel > Labels: cordova-lib, ios, plist, plugins > > When 2 cordova plugins are modifying the same property, only the first added > plugin is getting the changes applied: > I.e.: > https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin.git > https://github.com/Wizcorp/phonegap-facebook-plugin > The first one: > {code:xml} > <config-file target="*-Info.plist" parent="CFBundleURLTypes"> > <array> > <dict> > <key>CFBundleURLSchemes</key> > <array> > <string>$URL_SCHEME</string> > </array> > </dict> > </array> > </config-file> > {code} > The second one: > {code:xml} > <config-file target="*-Info.plist" parent="CFBundleURLTypes"> > <array> > <dict> > <key>CFBundleURLSchemes</key> > <array> > <string>fb$APP_ID</string> > </array> > </dict> > </array> > </config-file> > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org