5 Replies Latest reply on Dec 9, 2016 6:48 PM by halindrome

    Plugin requires cordova-android 6+; can phonegap build use that?

    halindrome

      The plugin cordova-plugin-mauron85-background-geolocation requires cordova android > 6.  This works fine from my command line build environment, but I cannot figure out how to request that via phonegap build.  Is it possible?

        • 1. Re: Plugin requires cordova-android 6+; can phonegap build use that?
          kerrishotts Adobe Community Professional

          It might help to see your config.xml file (minus identifying/secret information).

          • 2. Re: Plugin requires cordova-android 6+; can phonegap build use that?
            halindrome Level 1

            Sure...

             

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

            <widget id="foo" version="0.1.4" versionCode="24" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:gap="http://phonegap.com/ns/1.0">

                <name>asd</name>

                <description>

                    asd

                </description>

                <author email="support@asd.com" href="http://www.asd.com">

                    asd

                </author>

                <content src="index.html" />

                <access origin="*" />

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

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

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

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

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

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

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

                <platform name="android">

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

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

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

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

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

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

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

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

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

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

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

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

                    <preference name="android-targetSdkVersion" value="18" />

                </platform>

                <platform name="ios">

                    <feature name="StatusBar">

                        <param name="ios-package" value="CDVStatusBar" onload="true" />

                    </feature>

                    <perference name="StatusBarOverlaysWebView" value="false" />

                    <!-- <config-file parent="UIBackgroundModes" target="*-Info.plist">

                        <array>

                            <string>bluetooth-central</string>

                        </array>

                    </config-file> -->

                </platform>

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

                <plugin name="cordova-plugin-ble-central" spec="~1.0.1" />

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

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

                <plugin name="cordova-plugin-media" spec="^1.0.1" />

                <plugin name="cordova-plugin-vibration" spec="^1.2.0" />

                <plugin name="cordova-plugin-camera" spec="~2.2.0" />

                <plugin name="cordova-plugin-file" spec="~4.1.1" />

                <plugin name="cordova-plugin-file-transfer" spec="~1.5.1" />

                <plugin name="cordova-plugin-barcodescanner" spec="~0.7.0" />

                <plugin name="cordova-open" spec="~1.0.9" />

                <plugin name="cordova-plugin-splashscreen" spec="~4.0.0" />

                <!-- <plugin name="cordova-custom-config" spec="~3.0.0" /> -->

                <plugin name="de.appplant.cordova.plugin.local-notification" spec="~0.8.2dev" />

                <engine name="android" spec="~6.1.0" />

                <plugin name="cordova-plugin-mauron85-background-geolocation" spec="~2.2.5" />

                <plugin name="cordova-plugin-statusbar" spec="~2.2.0" />

            </widget>

            • 4. Re: Plugin requires cordova-android 6+; can phonegap build use that?
              halindrome Level 1

              Yes, I see that.  And my config file says phonegap-version cli-6.4.0, but it does not seem to be using that.  Or at least that is my conclusion given the errors I am seeing in the build - which are similar errors to those I see if I build locally with a cli < 6.4.0.  How can I tell which version of the cli was actually used for a build?

              • 5. Re: Plugin requires cordova-android 6+; can phonegap build use that?
                halindrome Level 1

                And now, tonight, it runs to completion.  No idea what changed.  Thanks everyone!