9 Replies Latest reply on Aug 9, 2016 12:30 AM by softweavert76684001

    Facing Issues in the Plugins

    softweavert76684001

      Hi Phonegap Support,

       

      I am using phonegap-facebook-plugin and cordova-plugin-camera. From Last

      weak, the plugin has stopped installing on phonegap build. I see these

      errors

       

      http://prntscr.com/c073t2  and   http://prntscr.com/c2zihi

       

      when i try to install it.

       

      i am using latest versions. Still these giving me error and i am not able

      to run my whole app at the moment because of this error.

       

      Any help would be appreciated.

       

      Thanks in advance,

      Rahul

       

      --

      Solutions Delievered

      www.softweavertech.com

      Facebook: www.facebook.com/SoftweaverTech

       

        • 1. Re: Facing Issues in the Plugins
          VectorP Level 4

          Could you please post your config.xml?

          • 2. Re: Facing Issues in the Plugins
            softweavert76684001 Level 1

            Here is my config.xml.

             

            <?xml version='1.0' encoding='utf-8'?>

            <widget id="com.ocevent.ocevents" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" xmlns:cdv="http://cordova.apache.org/ns/1.0">

                <name>Live</name>

                <description>

                    Live Eventmanager

                </description>

                <author email="chh_rahul@live.com" href="http://softweavertech.com">

                    Rahul Chhabra

                </author>

                <content src="index.html" />

                <allow-navigation href="*" />

                 <allow-intent href="http://*/*" />

               <allow-intent href="https://*/*" />

               <allow-intent href="tel:*" />

               <allow-intent href="sms:*" />

                  

             

             

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

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

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

            <icon src="icons/iphone_120x120.png" gap:platform="ios" width="120" height="120" />

            <icon src="icons/iphone_152x152.png" gap:platform="ios" width="152" height="152" />

            <icon src="icons/iphone_180x180.png" gap:platform="ios" width="180" height="180" />

             

                

            <icon src="icons/LiveIcon.png" gap:platform="android" />

            <!--splash src="icons/screen.png" gap:platform="android" /-->

             

            <!--icon src="icons/OCEM4-Android_57.png" gap:platform="android" /-->

            <gap:plugin name="cordova-plugin-camera" source="pgb"  />

            <gap:plugin name="cordova-plugin-file" source="pgb"  />

            <gap:plugin name="cordova-plugin-customurlscheme" source="npm">

              <param name="URL_SCHEME" value="live" />

            </gap:plugin>

            <plugin name="cordova-plugin-whitelist" version="1" />

            <!--gap:plugin name="com.hutchind.cordova.plugins.streamingmedia" spec="0.1.3" source="pgb" /-->

            <gap:plugin name="cordova-plugin-file-transfer" source="pgb"  />

            <gap:plugin name="cordova-plugin-dialogs" source="pgb"  />

            <gap:plugin name="cordova-plugin-media-capture" source="pgb"  />

            <gap:plugin name="cordova-plugin-splashscreen" source="pgb"  />

            <gap:plugin name="com.phonegap.plugins.facebookconnect" version="0.8.0">

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

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

            </gap:plugin>   

            <gap:config-file platform="ios" parent="UIStatusBarHidden">

                <true/>

            </gap:config-file>

             

            <platform name="android">

                <!-- you can use any density that exists in the Android project -->

                <splash src="icons/screen_640x960.png" density="land-hdpi"/>

                <splash src="icons/screen_640x960.png" density="land-ldpi"/>

                <splash src="icons/screen_640x960.png" density="land-mdpi"/>

                <splash src="icons/screen_640x960.png" density="land-xhdpi"/>

             

                <splash src="icons/screen_640x960.png" density="port-hdpi"/>

                <splash src="icons/screen_640x960.png" density="port-ldpi"/>

                <splash src="icons/screen_640x960.png" density="port-mdpi"/>

                <splash src="icons/screen_640x960.png" density="port-xhdpi"/>

            </platform>

             

            <platform name="ios">

                <!-- images are determined by width and height. The following are supported -->

                <splash src="icons/screen_320x480.png" width="320" height="480"/>

                <splash src="icons/screen_640x960.png" width="640" height="960"/>

                <splash src="icons/screen_768x1024.png" width="768" height="1024"/>

                <splash src="icons/screen_1536x2048.png" width="1536" height="2048"/>

                <splash src="icons/screen_1024x768.png" width="1024" height="768"/>

                <splash src="icons/screen_2048x1536.png" width="2048" height="1536"/>

                <splash src="icons/screen_640x1136.png" width="640" height="1136"/>

                <splash src="icons/screen_750x1334.png" width="750" height="1334"/>

                <splash src="icons/screen_1242x2208.png" width="1242" height="2208"/>

                <splash src="icons/screen_2208x1242.png" width="2208" height="1242"/>

            </platform>

             

            <gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance">

                <false/>

            </gap:config-file>

            <preference name="AllowInlineMediaPlayback" value="true" />   

            <preference name="DisallowOverscroll" value="true" />

            <preference name="SplashScreen" value="screen" />

            <preference name="SplashScreenDelay" value="5000" /> 

            </widget>

            • 3. Re: Facing Issues in the Plugins
              softweavert76684001 Level 1

              Above is my old config.xml and here is my latest config.xml

               

              <?xml version='1.0' encoding='utf-8'?>

              <widget id="com.ocevent.ocevents" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" xmlns:cdv="http://cordova.apache.org/ns/1.0">

                  <name>Live</name>

                  <description>

                      Live Eventmanager

                  </description>

                  <author email="chh_rahul@live.com" href="http://softweavertech.com">

                      Rahul Chhabra

                  </author>

                  <content src="index.html" />

                  <allow-navigation href="*" />

                   <allow-intent href="http://*/*" />

                 <allow-intent href="https://*/*" />

                 <allow-intent href="tel:*" />

                 <allow-intent href="sms:*" />

                   

               

               

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

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

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

              <icon src="icons/iphone_120x120.png" gap:platform="ios" width="120" height="120" />

              <icon src="icons/iphone_152x152.png" gap:platform="ios" width="152" height="152" />

              <icon src="icons/iphone_180x180.png" gap:platform="ios" width="180" height="180" />

               

                 

              <icon src="icons/LiveIcon.png" gap:platform="android" />

              <!--splash src="icons/screen.png" gap:platform="android" /-->

               

              <!--icon src="icons/OCEM4-Android_57.png" gap:platform="android" /-->

              <gap:plugin name="cordova-plugin-camera" source="pgb"  />

              <gap:plugin name="cordova-plugin-file" source="pgb"  />

              <gap:plugin name="cordova-plugin-customurlscheme" source="npm">

                <param name="URL_SCHEME" value="live" />

              </gap:plugin>

              <plugin name="cordova-plugin-whitelist" version="1" />

              <!--gap:plugin name="com.hutchind.cordova.plugins.streamingmedia" spec="0.1.3" source="pgb" /-->

              <gap:plugin name="cordova-plugin-file-transfer" source="pgb"  />

              <gap:plugin name="cordova-plugin-dialogs" source="pgb"  />

              <gap:plugin name="cordova-plugin-media-capture" source="pgb"  />

              <gap:plugin name="cordova-plugin-splashscreen" source="pgb"  />

              <gap:plugin name="com.phonegap.plugins.facebookconnect" version="0.9.0">

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

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

              </gap:plugin>  

              <gap:config-file platform="ios" parent="UIStatusBarHidden">

                  <true/>

              </gap:config-file>

               

              <platform name="android">

                  <!-- you can use any density that exists in the Android project -->

                  <splash src="icons/screen_640x960.png" density="land-hdpi"/>

                  <splash src="icons/screen_640x960.png" density="land-ldpi"/>

                  <splash src="icons/screen_640x960.png" density="land-mdpi"/>

                  <splash src="icons/screen_640x960.png" density="land-xhdpi"/>

               

                  <splash src="icons/screen_640x960.png" density="port-hdpi"/>

                  <splash src="icons/screen_640x960.png" density="port-ldpi"/>

                  <splash src="icons/screen_640x960.png" density="port-mdpi"/>

                  <splash src="icons/screen_640x960.png" density="port-xhdpi"/>

              </platform>

               

              <platform name="ios">

                  <!-- images are determined by width and height. The following are supported -->

                  <splash src="icons/screen_320x480.png" width="320" height="480"/>

                  <splash src="icons/screen_640x960.png" width="640" height="960"/>

                  <splash src="icons/screen_768x1024.png" width="768" height="1024"/>

                  <splash src="icons/screen_1536x2048.png" width="1536" height="2048"/>

                  <splash src="icons/screen_1024x768.png" width="1024" height="768"/>

                  <splash src="icons/screen_2048x1536.png" width="2048" height="1536"/>

                  <splash src="icons/screen_640x1136.png" width="640" height="1136"/>

                  <splash src="icons/screen_750x1334.png" width="750" height="1334"/>

                  <splash src="icons/screen_1242x2208.png" width="1242" height="2208"/>

                  <splash src="icons/screen_2208x1242.png" width="2208" height="1242"/>

              </platform>

               

              <gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance">

                  <false/>

              </gap:config-file>

              <preference name="AllowInlineMediaPlayback" value="true" />  

              <preference name="DisallowOverscroll" value="true" />

              <preference name="SplashScreen" value="screen" />

              <preference name="SplashScreenDelay" value="5000" />

              </widget>

              • 4. Re: Facing Issues in the Plugins
                VectorP Level 4

                Here's an example of the problem:

                 

                <gap:plugin name="cordova-plugin-camera" source="pgb"  />

                 

                You should:

                - use the syntax without :gap namespace

                See Plugins | PhoneGap Docs

                - get the plugins from npm, not from the obsolete pgb repo

                 

                Correct would be:

                <plugin name="cordova-plugin-camera" />

                (npm is assumed as default)

                 

                BTW:

                - <plugin name="cordova-plugin-whitelist" version="1" />:

                Version-1 doesn't exist. While others often suggest to pin the latest actual version, I would rather suggest not to specify a version at all.

                - For iPad, you should include the statusbar plugin, otherwise it won't scale well.

                - <splash src="icons/screen_640x960.png" density="land-hdpi"/>

                You should use the qualifier attribute, not density

                Also, xxhdpi and xxxhdpi are missing

                1 person found this helpful
                • 5. Re: Facing Issues in the Plugins
                  softweavert76684001 Level 1

                  Thanks VectorP for your precious help. This resolves my camera plugin issue. But the issue of phonegap-facebook-plugin is still there.

                   

                  Here is the screenshot http://prntscr.com/c3dwy2 .

                   

                  Have you any solution regarding this facebook plugin

                  • 6. Re: Facing Issues in the Plugins
                    VectorP Level 4

                    You may want to try cordova-plugin-facebook4

                    1 person found this helpful
                    • 7. Re: Facing Issues in the Plugins
                      softweavert76684001 Level 1

                      i tried cordova-plugin-facebook4 in my app.

                       

                      Now the plugin has stopped installing on phonegap build for android. for ios its working fine.

                       

                      Here is the screenshot: http://prntscr.com/c3eaer

                       

                      I added code in my config.xml as this

                       

                      <plugin name="cordova-plugin-facebook4" spec="1.7.1">

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

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

                      </plugin>

                      or

                      <plugin name="cordova-plugin-facebook4" spec="~1.7.1">

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

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

                      </plugin>

                       

                      i tried both but same error occurs

                      • 8. Re: Facing Issues in the Plugins
                        VectorP Level 4

                        Well, you should carefully read the plugin docs and apply all of it! :-)

                         

                        It says:

                        Phonegap build (use phonegap-version >= cli-5.2.0, android-minSdkVersion>=15, and android-build-tool=gradle)

                        1 person found this helpful
                        • 9. Re: Facing Issues in the Plugins
                          softweavert76684001 Level 1

                          Thanks VectorP for your precious help.