2 Replies Latest reply on Apr 18, 2017 2:36 PM by iraborj94856813

    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 Community Professional

          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>

                <description>

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

                </description>

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

                    Hello Team

                </author>

                <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"/>

                </platform>

                <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:*" />

                </platform>

            </widget>

             

            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