1 Reply Latest reply on Jun 15, 2017 2:23 AM by Gabit_Zhake

    npm facebook connect plugin problem in IOS

    alond83602031

      Hi,

      I had a phonegap build based app that was working fine until I had to update the plugins to NPM. My app uses a plugin to connect to facebook. The following code on config.xml works fine on Android, but I get the error: "Error - The following 3rd-party plugin is causing the build to fail and may need to be updated to a newer version: com.phonegap.plugins.facebookconnect" when trying to build it on IOS. Can you please suggest a way to fix it? Here is the code:

       

      <?xml version="1.0" encoding="UTF-8" ?>

          <widget xmlns   = "http://www.w3.org/ns/widgets"

              xmlns:gap   = "http://phonegap.com/ns/1.0"

        xmlns:android   = "http://schemas.android.com/apk/res/android"

              id          = "XXXX"

              versionCode = "101"

              version     = "1.1.9" >

       

        <name>XXXX</name>

        <description>

             XXXX

          </description>

        <preference name="phonegap-version" value="cli-5.4.1" />

        <preference name="android-minSdkVersion" value="gradle"  />

       

        <icon src="images/icon.png" />

        <icon src="icon-57.png" gap:platform="ios" width="57" height="57" />

        <icon src="icon-57@2x.png" gap:platform="ios" width="114" height="114" />

        <icon src="icon-60.png" gap:platform="ios" width="60" height="60" />

        <icon src="icon-60@2x.png" gap:platform="ios" width="120" height="120" />

        <icon src="icon-72.png" gap:platform="ios" width="72" height="72" />

        <icon src="icon-72@2x.png" gap:platform="ios" width="144" height="144" />

        <icon src="icon-76.png" gap:platform="ios" width="76" height="76" />

        <icon src="icon-76@2x.png" gap:platform="ios" width="152" height="152" />

        

        <gap:config-file platform="ios" parent="CFBundleVersion"><string>172</string></gap:config-file>

       

        <plugin name="cordova-plugin-whitelist" spec="1.1.0" />

        <access origin="*" />

        <allow-intent href="*" />

        <allow-navigation href="*" />

       

        <plugin name="pgb-facebook-connect" spec="0.12.0">

        <param name="APP_ID" value="XXXX" />

        <param name="APP_NAME" value="XXX" />

        </plugin>

       

         <plugin name="cordova-plugin-geolocation" spec="~2.4.0" />

        <plugin name="cordova-plugin-network-information" spec="~1.3.0" />

        <plugin name="cordova-plugin-inappbrowser" spec="~1.5.0" />

        <plugin name="cordova-plugin-device" spec="~1.1.3" />

       

        <gap:splash src="images/splash.png" />

        <gap:splash src="splash/ios/splash-320.png" gap:platform="ios" width="320" height="480" />

        <gap:splash src="splash/ios/splash-480.png" gap:platform="ios" width="480" height="320" />

        <gap:splash src="splash/ios/splash-768.png" gap:platform="ios" width="768" height="1024" />

        <gap:splash src="splash/ios/splash-1024.png" gap:platform="ios" width="1024" height="768" />

        <gap:splash src="splash/ios/splash-640-1136.png" gap:platform="ios" width="640" height="1136" />

        <gap:splash src="splash/ios/splash-640-960.png" gap:platform="ios" width="640" height="960" />

        <gap:splash src="splash/ios/splash-960-640.png" gap:platform="ios" width="960" height="640" />

        <gap:splash src="splash/ios/splash-1536-2008.png" gap:platform="ios" width="1536" height="2008" />

        <gap:splash src="splash/ios/splash-2048-1496.png" gap:platform="ios" width="2048" height="1496" />

      </widget>

       

      Here is the specification page of the  pgb-facebook-connect plugin that looks like it causes the problem: pgb-facebook-connect

      Thanks for you help,

      Alon