5 Replies Latest reply on Nov 28, 2017 1:46 PM by pierrem90750237

    No plugins is working in phonegap build

    iraborj94856813 Level 1

      I tried using the phonegap build for my app but after installation on my Android phone, no plugins was working expertly "orientation lock".

      I need help urgently please.

        • 1. Re: No plugins is working in phonegap build
          kerrishotts Adobe Employee

          Need more information:


          • Define what you mean by 'plugins not working'
          • What platform(s) are you building for? What version of the platform are you using?
          • What device(s) have you tested on? OS versions?
          • What plugins are you using? Versions?
          • What does your config.xml look like (minus identifying/private information)?
          • 2. Re: No plugins is working in phonegap build
            iraborj94856813 Level 1

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

            <widget id="com.phonegap.hello" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">

                <name>Hello World</name>


                    Hello World, is all about Beauty | Fashion | Lifestyle.


                <author email="support@phonegap.com" href="http://whiteshark.com">

                    Hello Team


                <content src="index.html" />

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

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

                <preference name="orientation" value="portrait" />

                <preference name="fullscreen" value="false" />

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

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

                <preference name="ShowSplashScreenSpinner" value="false"/>

                <plugin name="cordova-plugin-battery-status" source="npm" />

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

                <plugin name="cordova-plugin-x-socialsharing" source="npm" />

                <plugin name="cordova-plugin-media-capture" source="npm" />

                <plugin name="cordova-plugin-console" source="npm" />

                <plugin name="cordova-plugin-contacts" source="npm" />

                <plugin name="cordova-plugin-device" source="npm" />

                <plugin name="cordova-plugin-device-motion" source="npm" />

                <plugin name="cordova-plugin-screen-orientation" source="npm" />

                <plugin name="cordova-plugin-dialogs" source="npm"  />

                <plugin name="cordova-plugin-file" source="npm" />

                <plugin name="cordova-plugin-file-transfer" source="npm" />

                <plugin name="cordova-plugin-geolocation" source="npm" />

                <plugin name="cordova-plugin-globalization" source="npm" />

                <plugin name="cordova-plugin-inappbrowser" source="npm" />

                <plugin name="cordova-plugin-media" source="npm" />

                <plugin name="cordova-plugin-network-information" source="npm" />

                <plugin name="cordova-plugin-splashscreen" source="npm" />

                <plugin name="cordova-plugin-statusbar" source="npm" />

                <plugin name="cordova-plugin-vibration" source="npm" />

                <plugin name="cordova-plugin-whitelist" source="npm" />

                <platform name="android">

                    <icon density="ldpi" src="res/android/drawable-ldpi-icon.png" />

                    <icon density="mdpi" src="res/android/drawable-mdpi-icon.png" />

                    <icon density="hdpi" src="res/android/drawable-hdpi-icon.png" />

                    <icon density="xhdpi" src="res/android/drawable-xhdpi-icon.png" />

                    <icon density="xxhdpi" src="res/android/drawable-xxhdpi-icon.png" />

                    <icon density="xxxhdpi" src="res/android/drawable-xxxhdpi-icon.png" />

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

                    <splash src="splash.png" />

                    <splash src="res/screen/drawable-port-hdpi-screen.png" density="port-hdpi"/>

                    <splash src="res/screen/drawable-port-ldpi-screen.png" density="port-ldpi"/>

                    <splash src="res/screen/drawable-port-mdpi-screen.png" density="port-mdpi"/>

                    <splash src="res/screen/drawable-port-xhdpi-screen.png" density="port-xhdpi"/>

                    <splash src="res/screen/drawable-port-xxhdpi-screen.png" density="port-xxhdpi"/>

                    <splash src="res/screen/drawable-port-xxxhdpi-screen.png" density="port-xxxhdpi"/>


                <access origin="*" />

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

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

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

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

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

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

                <platform name="android">

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




            this is how my config file looks like and the plugin that don't work is Network and social sharing plugin.

            and i have tested it on and 4.2.2 and 5.0 and also 6.0 android

            1 person found this helpful
            • 3. Re: No plugins is working in phonegap build
              bitsw33803128 Level 1

              After recent build I can confirm that camera plugin not working.


              Dose it require any change in config.xml now ? It was working yesterday. While installing the app in mobile I can see there is no permission for Camera now.

              • 4. Re: No plugins is working in phonegap build
                bitsw33803128 Level 1

                For android version number of these plugin need to indicated.


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

                <plugin name="cordova-plugin-file" version="4.3.3"/>

                <plugin name="cordova-plugin-file-transfer" version="1.6.3" />

                1 person found this helpful
                • 5. Re: No plugins is working in phonegap build
                  pierrem90750237 Level 1

                  Indeed we need to use older versions of some plugins.

                  bitsw33803128 was right, thank you !