phoneGAP version cli - 6.3.0

Hi all!

I have a problem on the phoneGAP version, I hope someone can help me.

I'm building the app with phoneGAP version 3.7.0 and this app works perfectly, but Google rejected game this app to the security vulnerability, this is why I need to update my version currently phoneGAP application, so I have updated to version cli phoneGAP - 6.3.0, the app builds perfectly, how ever when I install this on the device, the application always returns : "unable to connect to the server. I try to use the other version of phoneGAP, but the message is the same.

Thanks in advance!

Marissa. !

Since 3.7.0 changed a lot. You can't change just the version of phonegap and hope for the best.

Read the Blog of BMP since April 2015. Special attention to the white list, the plugins repo, the splashscreen plugin and the gap:-less syntax.

Tags: PhoneGap

Similar Questions

  • How to install Phonegap by CLI without Internet connection

    Hello guys.

    I just want to know in regard to this question because in the docs phonegap it was did not there if you install phonegap by CLI, you need an internet connection.

    Here's the command:

    NPM install g phonegap

    If with should this, I really an internet connection when installing phonegap by CLI?

    If SO, is there anyway where I can install phonegap without an internet connection using the CLI? I don't want to use the desktop version, because I want to have all the benefits of using CLI on the desktop version.

    Please help me guys hurt, I need your help. Thank you!

    You need an Internet connection at a given time. Why?

    -NPM install phonegap g: download the PhoneGap CLI and dependencies associated with NPM, which requires Internet access. You can download them to your local machine and install them like that, but anyway, you must Access the Internet at any given time.

    -create a phonegap: by default, the Hello World template downloads. You can change it in a local directory.

    phonegap-plate-forme add: download the NGP platform. Again, you can install from a local directory, but you will need to download the platform at some point.

    -Add some phonegap plugin: download the plugin from the Museum. You can install from a local directory, but you have to download the plugin at some point.

    -The first time you build for Android, Gradle will be configured and download dependencies.

    Now, if you don't mind not to transport files back from an environment that has Internet access, you can download the first four on a USB and copy on the environment that doesn't and then install from local directories. I'm not entirely sure of what to do about the Gradle part. You can probably do something similar, but I have never tried.

    It is easier to have an Internet connection through the first generation. After that (assuming that you do not change the platform or plugins), I don't think that you need an Internet connection until you need to deploy it to the app store.

  • PhoneGap Build - cli - 6.3.0 gives wrong icon for IOS

    I build the app using the https://build.phonegap.com.

    When you use cli 6.3.0 to build an application to fail to replace the default icon in the IOS version. the icon is specified in the config.xml file.

    A few days ago, I used cli 5.4.1 to build the app and icon displayed correctly on IOS devices

    is there a solution for cli 6.3.0 to fix this or can I change the 5.4.1 version all in construction.

    Yes, you can use a lower version, using the preference 'phonegap-version '.

    However, the correct icons should show (except 29x29@3 and 167 x 167, for which a bug report is always open).

    If they do not, please

    -post your config.xml here for participants in the forum can find errors

    -confirm that you have both index.html and the config.XML in the directory root of your zip file.

  • Reconstruction of android app will trigger the "app update" on play store using phonegap version?

    IM wondering if what follows will work and allow the application to update properly on peoples phones:

    1. build a new application on construction of pit phone and 'Send' to play store
    2. Remove the build phonegap app
    3. a few months later to make minor changes to the code, create a 'new' app on phonegap build the code
    4. resubmit the application as an update of store to play.

    Sorry if I don't know how to explain myself, im wondering if I do the above process will be android/google see it as a NEW application or an update to an existing application.  The reason why I wonder is phonegap build seems to give a 'App ID"and I don't know if it of just a thing phonegap or is somehow transmitted to google/android.

    Thank you!

    As long as the application id is the same, the correctly incrementing version numbers, and even signature keys, game store he sees as an update.

    For the app id, it is a part that you set in the config.XML, as well as lots of other information on your application. For a help authoring config.xml file, you can try my ConfiGAP tool.

    Chris

  • Build the stop after the installation of the plugin

    I have some problems with my android build. My build is a failure, but I see no reason why it's a failure.

    the paper always stops after installing plugins. I tried several tests.

    I changed the syntax plugins on my config files, I try to remove the config plugin, but the build is always a failure.

    (Sorry for my English )

    This is my config file:

    <? XML version= "1.0" encoding= ' utf - 8'? >
    "" <widget id= 'com.exaprint.fr.exaprint' ios-CFBundleIdentifier= "com.exaprint.fr.exaprint" android-packageName= "com.exaprint.fr.exaprint" version= "3.2.5" android-versionCode= "30020508" = "en" xmlns defaultlocale= 'http://www.w3.org/ns/widgets"" " xmlns:cdv="http://cordova.apache.org/ns/1.0""">

    <name> MyApp < /name>

    <description>

    An example Apache Cordova application that responds to the deviceready event.

    < /description>

    "" <author send= "[email protected]"" " href= "http://cordova.io""">

    Team Apache Cordova

    < /author>

    <engine name= 'android' spec= "4.0.0" / >

    <engine name= 'ios' spec= "3.9.1" / >

    <engine name= 'windows' spec= "3.8.1" / >

    <engine name= "wp8" spec= "3.8.0" / >

    < value ofpreference name= ' phonegap-version ' ='cli - 6.3.0' / >

    <preference name= "full screen" value= "True" / >

    <preference name= "KeepRunning" value= "False" / >

    <preference name= "ShowTitle" value= "False" / >

    <preference name= "InAppBrowserStorageEnabled" value= "False" / >

    <preference name= "SuppressesIncrementalRendering" value= "True" / >

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

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

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

    <preference name= "splash-screen-duration" value= "4000" / >

    <content src= "index.html" / >

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

    <plugin name= "cordova-plugin-splashscreen" version= "2.1.0" source= "MNP" / >

    "<=" cordova-plugin-inappbrowser " plugin name spec="https://github.com/apache/cordova-plugin-inappbrowser.git"" " / >

    ' <plugin name= "cordova-plugin-websql" version= "1.0.0" spec= "https://github.com/MSOpenTech/cordova-plugin-websql.git"""/ >

    "<="com.pushwoosh.plugins.pushwoosh" plugin name spec="https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin.git"" " version="3.6.9" / >

    "<= ' cordova-plugin-network-information ' plugin name spec="https://github.com/apache/cordova-plugin-network-information.git"" "/ >

    "<=" cordova-plugin-keyboard " plugin name spec="https://github.com/driftyco/ionic-plugins-keyboard.git"" "/ >

    "<=" cordova-plugin-fullscreen " plugin name spec="https://github.com/mesmotronic/cordova-plugin-fullscreen.git"" "/ >

    ' <plugin name= "cordova-plugin-apprate" version= "1.2" spec= "https://github.com/pushandplay/cordova-plugin-apprate.git""" / >

    <access original= "" * " browserOnly="true" / >"

    <access original= "*." pushwoosh.com' / >

    <access original= "" Tel: * ' launch-external= "Yes"/ > "

    <access origin= "mailto:*" launch-external= "Yes"/ >

    <allow navigation href= "" * ' / > "

    <allow-intent href= "" * ' / > "

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

    <preference name= "permissions" value= "none"/ >

    <preference name= "android-build-tool" value= "gradle" / >

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

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

    < content ofpreference = "width = device-width, original scale = 1.0, maximum scale = 1.0, minimum scale is 1.0, scalable user = 0, target-densitydpi = PPP device" name= "viewport" / > "

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

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

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

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

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

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

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

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

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

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

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

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

    < /platform>

    <platform name= "ios">

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

    <allow-intent href= "" itms: * ' / > "

    <allow-intent href= "" itms-apps: * ' / > "

    <icon height= "57" src= "res/ios/icon/icon.png" width= "57" / >

    <icon height= "114" src= "res/ios/icon/[email protected]" width= "114" / >

    <icon height= "40" src= "res/ios/icon/icon-40.png" width= "40" / >

    <icon height= "80" src= "res/ios/icon/[email protected]" width= "80" / >

    <icon height= "50" src= "res/ios/icon/icon-50.png" width= "50" / >

    <icon height= "100" src= "res/ios/icon/[email protected]" width= "100" / >

    <icon height= "60" src= "res/ios/icon/icon-60.png" width= "60" / >

    <icon height= "120" src= "res/ios/icon/[email protected]" width= "120" / >

    <icon height= "180" src= "res/ios/icon/[email protected]" width= "180" / >

    <icon height= "72" src= "res/ios/icon/icon-72.png" width= "72" / >

    <icon height= "144" src= "res/ios/icon/[email protected]" width= "144" / >

    <icon height= "76" src= "res/ios/icon/icon-76.png" width= "76" / >

    <icon height= "152" src= "res/ios/icon/[email protected]" width= "152" / >

    <icon height= "29" src= "res/ios/icon/icon-small.png" width= "29" / >

    <icon height= '58' src= "res/ios/icon/[email protected]" width= "58" / >

    <icon height= "87" src= "res/ios/icon/[email protected]" width= "87" / >

    <splash height= "1136" src= "res/ios/splash/Default-568h@2x~iphone.png" width= "640" / >

    <splash height= "1334" src= "res/ios/splash/Default-667h.png" width= "750" / >

    <splash height= "2208" src= "res/ios/splash/Default-736h.png" width= "1242" / >

    <splash height= "2048" src= "res/ios/splash/Default-Portrait@2x~ipad.png" width= "1536" / >

    <splash height= "1024" src= "res/ios/splash/Default-Portrait~ipad.png" width= "768" / >

    <splash height= "960" src= "res/ios/splash/Default@2x~iphone.png" width= "640" / >

    <splash height= "480" src= "res/ios/splash/Default~iphone.png" width= "320" / >

    < /platform>

    < /widget>

    I'made a local build using cordova and my build to succeed regardless of the config file.

    What?

    In this case, everything you are breast-feeding to BMPS, it is simply not what it expects. Most likely, your directory structure is incorrect (for example indexes and the config in different directories) or you download a project of Cordova.

    Could you please make your online zip file and post the url here?

  • How to upgrade to the latest version of PhoneGap (cli - 6.3.0)?

    I want to upgrade the version of PhoneGap cli - 5.2.0 to cli - 6.3.0 for my hybrid application. According to the documentationPhoneGap, adding the following preference in my file config.xml should suffice; but it does not work for me.

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

    When I download my code with the updated config.xml file, the generation is no shortage but the PhoneGap version is not updated either.

    I solved this in deletion and recreation of my application to build.phonegap.com/apps.

  • Conflict beetween cordova-plugin-facebook4 &amp; cordova-plugin-facebook4 phonegap-plugin-push

    Hello

    I've been using Phonegap to build for a couple of years and it's a great tool. It is the first time that I can't understand what is happening.

    If I add the following plugins, one at a time the construction is successful, but if I put all the build fails

    1. Cordova-plugin-facebook4
    2. PhoneGap-plugin-push

    Here is my file config.xml

    <? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >

    < widget id = "com.x.x" version = "1.0.1" xmlns =" " http://www.w3.org/ns/widgets "xmlns:gap =" " http://PhoneGap.com/ns/1.0 "versionCode ="1"> "

    < name > X < / name >

    < description >

    App Móvil del Lider for sale Electronica

    < / description >

    " < author email = ' [email protected] "href =" http://www.x.com.ar/ ">

    x

    < / author >

    " < author href = ' http://www.x.com.ar/ "email =" " [email protected] "> "

    x

    < / author >

    < src = "index.html" / content >

    < access origin = "*" / >

    < name of option = "webviewbounce" value = "false" / >

    < name of option = "UIWebViewBounce" value = "false" / >

    < name of option = "DisallowOverscroll" value = "true" / >

    < name of option = "android-minSdkVersion" value = "16" / >

    < name of option = "BackupWebStorage" value = "none" / >

    < name of option = "phonegap-version" value = "cli - 5.2.0" / >

    < name of option = value "android-build-tool" = "gradle" / >

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

    "< src="res/icon/android/icon-36-ldpi.png icon "gap: platform = gap: qualifier 'android' ="ldpi"/ >

    "< src="res/icon/android/icon-48-mdpi.png icon "gap: platform = gap: qualifier"android"="mdpi"/ >

    "< src="res/icon/android/icon-72-hdpi.png icon "gap: platform = gap: qualifier 'android' ="hdpi"/ >

    "< src="res/icon/android/icon-96-xhdpi.png icon "gap: platform = gap: qualifier 'android' ="xhdpi"/ >

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

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

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

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

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

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

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

    < name of option = "SplashScreen" value = "none" / >

    <!-set the screen for starting application for each platform. ->

    "< src="res/screen/android/screen-ldpi-portrait.png gap: splash "gap: platform = gap: qualifier 'android' ="port-ldpi"/ >

    "< src="res/screen/android/screen-mdpi-portrait.png gap: splash "gap: platform = gap: qualifier 'android' ="port-mdpi"/ >

    "< src="res/screen/android/screen-hdpi-portrait.png gap: splash "gap: platform = gap: qualifier 'android' ="port-hdpi"/ >

    "< src="res/screen/android/screen-xhdpi-portrait.png gap: splash "gap: platform = gap: qualifier 'android' ="port-xhdpi"/ >

    "< src="res/screen/blackberry/screen-225.png gap: splash "gap: platform ="blackberry"/ >

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

    "< src="res/screen/ios/screen-iphone-portrait-2x.png gap: splash "gap: platform ="ios"width ="640"height ="960"/ >

    "< src="res/screen/ios/screen-iphone-portrait-568h-2x.png gap: splash "gap: platform ="ios"width ="640"height ="1136"/ >

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

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

    "< src="res/screen/windows-phone/screen-portrait.jpg gap: splash "gap: platform ="winphone"/ >

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

    < name of the function "Θtat bar" = >

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

    < / fiction >

    < access origin = "*" / >

    <! - added the following intentions to support the withdrawal of the code of the white base cordova to a plugin list - >

    <!-white list configuration. Refer to -> https://cordova.apache.org/docs/en/edge/guide_appdev_whitelist_index.md.html

    < name of the ditch: plugin = "cordova-plugin-whitelist" version = "1.2.2" source = "MNP" / >

    " < allow intention href = ' http://*/* "/>

    " < allow intention href = ' https://*/* "/>

    < allow intention href = "Tel: *" / >

    < allow intention href = "sms: *" / >

    < allow intention href = "mailto:*" / >

    < allow intention href = "geo: *" / >

    < platform name = "android" >

    < allow intention href = "market: *" / >

    < / platform >

    < platform name = "ios" >

    < allow intention href = "itms: *" / >

    < allow intention href = "itms-apps: *" / >

    < / platform >

    < name = "com.telerik.plugins.nativepagetransitions plugin" source = "MNP" / > "

    < name of the ditch: plugin = "cordova-plugin-x-socialsharing" source = "MNP" / >

    < name of the ditch: plugin = "cordova-plugin-inappbrowser" source = "MNP" / >

    < name of the ditch: plugin = 'cordova-plugin-facebook4' source = 'MNP' version = "1.7.4" >

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

    < param name = 'APP_NAME' value = 'X' / >

    < / gap: plugin >

    < name of the ditch: plugin = 'phonegap-plugin-push' source = 'MNP' version = "1.5.3" >

    < param name = "SENDER_ID" value = "X" / >

    < / gap: plugin >

    < gap: plugin name = "org.apache.cordova.device" / > "

    < name of the ditch: plugin = "cordova-plugin-x-toast" source = "MNP" / >

    < name of the ditch: plugin = "Ionic-plugin-keyboard" version = "2.1.0" source = "MNP" / >

    < / widget >

    And the error log is the following. Can someone help me? Thanks in advance

    Construction date: 2016-10-01 18:06:18 + 0000

    --------------------------------------------------------------------------------

    OUTPUT OF THE PLUGIN

    --------------------------------------------------------------------------------

    Installation of "org.apache.cordova.device" to "0.3.0" for android

    Using this version of Cordoba with an older version of cordova-android is removed. Consider the upgrade to [email protected] or newer.

    Retrieve the plugin "[email protected]" through the Museum

    Installation "cordova-plugin-whitelist" to "1.2.2" for android

    Using this version of Cordoba with an older version of cordova-android is removed. Consider the upgrade to [email protected] or newer.

    This plugin is applicable for versions of cordova-android higher than 4.0. If you have an earlier version of the platform, you do * not * need this plugin because the white list will be built.

    Retrieve the "cordova-plugin-x-socialsharing" plugin via the NPM

    Installation "cordova-plugin-x-socialsharing" to "5.1.3" for android

    Using this version of Cordoba with an older version of cordova-android is removed. Consider the upgrade to [email protected] or newer.

    Retrieve the "cordova-plugin-inappbrowser" plugin via the NPM

    Installation "cordova-plugin-inappbrowser" to "1.5.0" for android

    Using this version of Cordoba with an older version of cordova-android is removed. Consider the upgrade to [email protected] or newer.

    Retrieve the plugin "[email protected]" through the Museum

    Installation "cordova-plugin-facebook4' to '1.7.4" for android

    Using this version of Cordoba with an older version of cordova-android is removed. Consider the upgrade to [email protected] or newer.

    Retrieve the plugin "[email protected]" through the Museum

    Installation 'phonegap-plugin-push' to '1.5.3"for android

    Using this version of Cordoba with an older version of cordova-android is removed. Consider the upgrade to [email protected] or newer.

    Retrieve the "cordova-plugin-x-toast" plugin through the Museum

    Installation "cordova-plugin-x-toast" to "2.5.2" for android

    Using this version of Cordoba with an older version of cordova-android is removed. Consider the upgrade to [email protected] or newer.

    Retrieve the plugin "[email protected]" through the Museum

    Installation 'Ionic-plugin-keyboard""2.1.0"for android

    Using this version of Cordoba with an older version of cordova-android is removed. Consider the upgrade to [email protected] or newer.

    Retrieve the plugin "com.telerik.plugins.nativepagetransitions" through the Museum

    Installation of "com.telerik.plugins.nativepagetransitions" to "0.6.5" for android

    Using this version of Cordoba with an older version of cordova-android is removed. Consider the upgrade to [email protected] or newer.

    --------------------------------------------------------------------------------

    COMPILATION OUTPUT

    --------------------------------------------------------------------------------

    Build the option-"unrecognized (ignore).

    Running: / project/gradlew cdvBuildDebug b /project/build.gradle-Dorg.gradle.daemon=true - PcdvBuildMultipleApks = false - PcdvVersionCode = 1

    Configuration on demand is a function of incubation.

    : stretch

    : compileDebugNdk

    : preDebugBuild

    : checkDebugManifest

    : preReleaseBuild

    : CordovaLib:compileLint

    : CordovaLib:copyDebugLint updated

    : CordovaLib:mergeDebugProguardFiles

    : CordovaLib:preBuild

    : CordovaLib:preDebugBuild

    : CordovaLib:checkDebugManifest

    : CordovaLib:prepareDebugDependencies

    : CordovaLib:compileDebugAidl

    : CordovaLib:compileDebugRenderscript

    : CordovaLib:generateDebugBuildConfig

    : CordovaLib:generateDebugAssets updated

    : CordovaLib:mergeDebugAssets

    : CordovaLib:generateDebugResValues

    : CordovaLib:generateDebugResources

    : CordovaLib:packageDebugResources

    : CordovaLib:processDebugManifest

    : CordovaLib:processDebugResources

    : CordovaLib:generateDebugSources

    : CordovaLib:compileDebugJavaNote: entry files use or replace an obsolete API.

    Note: Recompile with - Xlint: deprecation for more details.

    : CordovaLib:processDebugJavaRes updated

    : CordovaLib:packageDebugJar

    : CordovaLib:compileDebugNdk

    : CordovaLib:packageDebugJniLibs updated

    : CordovaLib:packageDebugLocalJar updated

    : CordovaLib:packageDebugRenderscript updated

    : CordovaLib:bundleDebug

    : CordovaLib:copyReleaseLint updated

    : CordovaLib:mergeReleaseProguardFiles

    : CordovaLib:preReleaseBuild

    : CordovaLib:checkReleaseManifest

    : CordovaLib:prepareReleaseDependencies

    : CordovaLib:compileReleaseAidl

    : CordovaLib:compileReleaseRenderscript

    : CordovaLib:generateReleaseBuildConfig

    : CordovaLib:generateReleaseAssets updated

    : CordovaLib:mergeReleaseAssets

    : CordovaLib:generateReleaseResValues

    : CordovaLib:generateReleaseResources

    : CordovaLib:packageReleaseResources

    : CordovaLib:processReleaseManifest

    : CordovaLib:processReleaseResources

    : CordovaLib:generateReleaseSources

    : CordovaLib:compileReleaseJavaNote: entry files use or replace an obsolete API.

    Note: Recompile with - Xlint: deprecation for more details.

    : CordovaLib:processReleaseJavaRes updated

    : CordovaLib:packageReleaseJar

    : CordovaLib:compileReleaseNdk

    : CordovaLib:packageReleaseJniLibs updated

    : CordovaLib:packageReleaseLocalJar updated

    : CordovaLib:packageReleaseRenderscript updated

    : CordovaLib:bundleRelease

    : prepareComAndroidSupportCardviewV72340Library

    : prepareComAndroidSupportCustomtabs2340Library

    : prepareComAndroidSupportSupportV132340Library

    : prepareComAndroidSupportSupportV42340Library

    : prepareComFacebookAndroidFacebookAndroidSdk4141Library

    : prepareComGoogleAndroidGmsPlayServicesBase940Library

    : prepareComGoogleAndroidGmsPlayServicesBasement940Library

    : prepareComGoogleAndroidGmsPlayServicesGcm940Library

    : prepareComGoogleAndroidGmsPlayServicesIid940Library

    : prepareComGoogleAndroidGmsPlayServicesTasks940Library

    : prepareProjectCordovaLibUnspecifiedDebugLibrary

    : prepareDebugDependencies

    : compileDebugAidl

    : compileDebugRenderscript

    : generateDebugBuildConfig

    : generateDebugAssets updated

    : mergeDebugAssets

    : generateDebugResValues

    : generateDebugResources

    : mergeDebugResources

    : processDebugManifest

    : processDebugResourcesWarning: AndroidManifest.xml sets already debuggable (in http://schemas.android.com/apk/res/android); with existing value in manifest.

    Failure of the generation of table of resources to do a separation "

    /Project/build/intermediates/RES/debug/values-v23/values.XML:6: error: error: no resource only for the name found (at 'cardBackgroundColor' with value '? android: attr / colorBackgroundFloating').

    FAILED

    FAILED: Build failed with an exception.

    * What went wrong:

    The execution of the task failed ': ' processDebugResources.

    > com.android.ide.common.internal.LoggedErrorException: unable to run the command:

    /Android-SDK/build-tools/24.0.1/AAPT package - f - no - crunch - I /android-sdk/platforms/android-22/android.jar - M /project/build/intermediates/manifests/full/debug/AndroidManifest.xml s/project/build/intermediates/res/debug - a/project/build/intermediates/assets/debug m-J/project/build/generated/source/r/debug f /project/build/intermediates/res/resources-debug.ap_--debug mode - custom package com.rii.test - 0 apk - output-text-symbols/project/build/intermediates/symbols/debug

    Error code:

    1

    Output:

    Warning: AndroidManifest.xml sets already debuggable (in http://schemas.android.com/apk/res/android); with existing value in manifest.

    Failure of the generation of table of resources to do a separation "

    /Project/build/intermediates/RES/debug/values-v23/values.XML:6: error: error: no resource only for the name found (at 'cardBackgroundColor' with value '? android: attr / colorBackgroundFloating').

    * Try:

    Run with the option - stacktrace to get stack trace. Run with the option - info or - debug option to get out of the newspaper.

    BUILD FAILED

    Total time: dry 7,751

    /Project/Cordova/node_modules/q/q.js:126

    throw e;

    ^

    Error code 1 for command: / project/gradlew with args: lse cdvBuildDebug,-b,/project/build.gradle,-Dorg.gradle.daemon=true,-PcdvBuildMultipleApks=fa,-PcdvVersionCode = 1

    After a few days, I found the solution

    I changed from BMP to use the latest version of cordova

    And added lines

  • The Android Version name is always "1.0".

    We build our app android using BMPS for the past years and a half and have not seen this issue. Since a few days, regardless of configuration put us in the config.xml file, built for android version still bears the name "1.0". We cannot update our app to play store because of this problem.

    Config.XML:

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

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

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

    ID = "com.xxx.mobile".

    versionCode = "101".

    version = "0.9.54 - beta" >

    < name > XXX < / name >

    < description >

    / / DESC

    < / description >

    " < author href = ' http://www.example.com "email ="email"> "

    NAME OF THE APPLICATION

    < / author >

    < name of option = "android-versionCode" value = "101" / >

    < name of option = "xwalkVersion" value = "19 +" / >

    < name of option = "webView" value="org.crosswalk.engine.XWalkWebViewEngine"/ >

    < name of the option value="--disable-pull-to-refresh-effect"/ = "xwalkCommandLine" >

    < name of option = "xwalkMultipleApk" value = "true" / >

    < name of option = "loadUrlTimeoutValue" value = "700000" / >

    < name of option = "phonegap-version" value = "cli - 6.3.0" / >

    < = "permissions" option name value = "none" / >

    < name of option = value "android-build-tool" = "gradle" / >

    < name of option = "orientation" value = "portrait" / >

    < name of option = "android-targetSdkVersion" value = "22" / >

    < name of option = "target device" value = "universal" / >

    < name of option = "webviewbounce" value = "true" / >

    < name of option = "rentals-icon" value = "true" / >

    < option value = "stay webview" name = "true" / >

    < name of option = "detect types of data" value = "true" / >

    < = 'exit suspend' option name value = "false" / >

    < option value = "show-splash-screen-spinner" name = "true" / >

    < option value = "auto-hide-splash-screen" name = "true" / >

    < name of option = "disable-cursor" value = "false" / >

    < name of option = "android-minSdkVersion" value = "15" / >

    < = "android-installLocation' value = 'auto' option name / >

    < name of option = "StatusBarBackgroundColor" value = "#000000" / >

    < name of option = "BackgroundColor" value = "#000000" / >

    < name of option = "FadeSplashScreen" value = "false" / >

    < name of option = "ShowSplashScreenSpinner" value = "false" / >

    < name of option = "SplashMaintainAspectRatio" value = "false" / >

    < name of option = "SplashShowOnlyFirstTime" value = "true" / >

    < name of option = "SplashScreen" value = "screen" / >

    < name of option = "SplashScreenDelay" value = "6000" / >

    ... and so on

    Same Setup worked a few days back.

    Thanks in advance for any help. Is there anyone else who is facing the same question, too?

    Everything should be good to go now, sorry for the inconvenience.

  • Android app fails to update after changing the cli - 6.1.0 for cli - 6.3.0

    Hello

    I recently changed the phonegap-version preference in my file config.xml of cli - 6.1.0 for cli - 6.3.0. If I install a new cool app on my camera it installs ok. If I try and upgrade from a previous version of the application that was using cli - 6.1.0 it does not install and gives the message "application not installed."

    If I change back to cli - 6.1.0 and make any other changes in then upgrades very well.

    It's on a Samsung Galaxy S6 (SM-G920F) running Android 6.0.1

    Could you let me know what is the problem?

    Maybe it has something to do with this: unable to update already published after phonegap app build

    To sum up: If you have set the android versionCode as an attribute of a widget, an '8' was added to it by gradle. When you set '1' as versionCode, it became "18". '2' became '28' etc.

    It seems that this has been corrected or amended. Now, the versionCode will not be increased of BMPS.

    To test this, add a '8' for you versionCode. (Once again: If you have set your versionCode to '1', replace '18'.) If you defined on '2', change it to "28".)

    If the update works now, it was caused by this change. If it doesn't, please provide your config.xml.

  • PhoneGap Build InappBrowser - what am I doing wrong?

    I was faced with calls to plugins cordova of in my App. Basically, I use phonegap as a wrapper to load a CMS site. This issue has many sub-questions, so please excuse me if I take a wandering approach.

    I had originally planned to help Inappbrowser - but now I would like to support downloads (which it seems to me that Inappbrowser does not).

    Can I charge my external website in an Iframe? Looks like Iframes are bad because of compatibility.

    If I try to load my external site via an Iframe, I get an empty frame - what gives to think that something is wrong with my white list.

    Here's index.html file. I use inappbrowser here (with location defined or not).

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml " >

    < head >

    < title > Emerald Test App < /title >

    < name meta = "apple-mobile-web-app-compatible" content = "yes" / >

    < name meta = "viewport" content = "width = device-width" / > "

    < script src = "phonegap.js" > < / script >

    < / head >

    < script type = "text/javascript" >

    iabRef = window.open ('https://my-sites-url.com/content.aspx?page_id=31"," _self"," location = no "");

    iabRef.addEventListener ('loadstart', iabLoadStart);

    iabRef.addEventListener ('loadstop', iabLoadStop);

    iabRef.addEventListener ('loaderror', iabLoadError);

    iabRef.addEventListener ("quit", iabClose);

    < /script >

    < body >

    < / body >

    < / html >

    Here is my Config

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

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

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

    ID = "com.my - site - url.testapp.

    versionCode = '5 '.

    version = "1.0.4" >

    Test App < name > < / name >

    < description >

    An application specially designed for your organization

    < / description >

    " < author href = ' https://www.my-site-URL.com "email =" " [email protected] "> "

    My application

    < / author >

    < name of gap: platform = "ios" / >

    < name of gap: platform = "android" / >

    < name of gap: platform = "winphone" / >

    < name of option = "orientation" value = "default" / >

    < name of option = "phonegap-version" value = "cli - 6.3.0" / >

    < name of option = "full screen" value = "false" / >

    < name of option = "loadUrlTimeoutValue" value = "700000" / >

    < option name = "LoadingDialog" value = "Please wait, the application will load" / >

    < name of option = "AllowInlineMediaPlayback" value = "true" / >

    < name of option = "SplashScreenDelay" value = "7000" / >

    < name of option = "KeepRunning" value = "true" / >

    "< src="res/icon/android-icon-36x36.png icon "gap: platform = gap: qualifier 'android' ="ldpi"/ >

    "< src="res/icon/android-icon-48x48.png icon "gap: platform = gap: qualifier"android"="mdpi"/ >

    "< src="res/icon/android-icon-72x72.png icon "gap: platform = gap: qualifier 'android' ="hdpi"/ >

    "< src="res/icon/android-icon-96x96.png icon "gap: platform = gap: qualifier 'android' ="xhdpi"/ >

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

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

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

    "< src="res/icon/apple-icon-114x114.png icon "gap: platform ="ios"width ="114"height ="114"/ >

    "< src="res/icon/apple-icon-144x144.png icon "gap: platform ="ios"width ="144"height ="144"/ >

    "< src="res/icon/apple-icon-120x120.png icon "gap: platform ="ios"width ="120"height ="120"/ >

    "< src="res/icon/apple-icon-152x152.png icon "gap: platform ="ios"width ="152"height ="152"/ >

    "< src="res/icon/android-icon-72x72.png icon "gap: platform ="webos"/ >

    "< src="res/icon/android-icon-48x48.png icon "gap: platform ="winphone"/ >

    "< src="res/icon/apple-icon-180x180.png icon "gap: Platform = 'winphone" gap: role = "background" / >

    "< src="res/screen/default.png gap: splash "/ >

    "< src="res/screen/default.png gap: splash "gap: platform = gap: qualifier 'android' ="port-ldpi"/ >

    "< src="res/screen/mdpi.png gap: splash "gap: platform = gap: qualifier 'android' ="port-mdpi"/ >

    "< src="res/screen/hdpi.png gap: splash "gap: platform = gap: qualifier 'android' ="port-hdpi"/ >

    "< src="res/screen/xhdpi.png gap: splash "gap: platform = gap: qualifier 'android' ="port-xhdpi"/ >

    "< src="res/screen/xxhdpi.png gap: splash "gap: platform = gap: qualifier 'android' ="port-xxhdpi"/ >

    "< src="res/screen/xxxhdpi.png gap: splash "gap: platform = gap: qualifier 'android' ="port-xxxhdpi"/ >

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

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

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

    "< src="res/screen/750x1334.png gap: splash "gap: platform ="ios"width ="750"height ="1334"/ >

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

    "< src="res/screen/1242x2208.png gap: splash "gap: platform ="ios"width ="1242"height ="2208"/ >

    "< src="res/screen/default.png gap: splash "gap: platform ="winphone"/ >

    < name of the ditch: plugin = 'cordova-plugin-camera' spec = "0.3.6" source = "MNP" / >

    < name of the ditch: plugin = "cordova-plugin-media-capture" spec = "1.0.1" source = "MNP" / >

    < name of the ditch: plugin = 'cordova-plugin-device' source = 'MNP' / >

    < name of the ditch: plugin = "cordova-plugin-device-orientation" source = "MNP" / >

    < name of the ditch: plugin = 'cordova-plugin-device-motion' source = 'MNP' / >

    < name of the ditch: plugin = source "cordova-plugin-file" = "MNP" / >

    < name of the ditch: plugin = source "cordova-plugin-file" = "MNP" / >

    < name of the ditch: plugin = 'cordova-plugin-transfer files' source = 'MNP' / >

    < name of the ditch: plugin = spec 'cordova-plugin-media' = "0.2.16" source = "MNP" / >

    < name of the ditch: plugin = "cordova-plugin-inappbrowser" source = "MNP" / >

    < name of the ditch: plugin = "cordova-plugin-globalization" source = "MNP" / >

    < name of the ditch: plugin = "cordova-plugin-dialogues" source = "MNP" / >

    < name of the ditch: plugin = 'cordova-plugin-vibration' spec = "1.2.0" source = "MNP" / >

    < name of the ditch: plugin = "cordova-plugin-whitelist" source = "MNP" / >

    < allow navigation href = "" * "/ >"

    < allow intention href = "" * "/ >"

    < access origin = "" * "/ >"

    " < allow navigation href = ' http://*.my-site-URL.com " />

    < / widget >

    If downloading and recording is not available through inappbrowser, how can I managed to save files from an external site (which is what I want to look like a native app)?

    On my external site, I tried to open the files by using things like

    window.open(url, '_system');

    And _blank and adding 'location = no' etc, but no dice. Probably because the pages open in the inappbrowser are in sandbox.

    -Is it possible to start a download from an external web page in Inappbrowser using javascript?

    Is my only option to modify the java plugin onappbrowser? Seems sketchy and examples seem to only support iOS.

    Should I use an Iframe? Any ideas why my Iframes would be empty by using the above configuration? I'm doing something wrong?

    If you've read this far, thanks for reading!

    Using the configuration and the index below, I use window.open ('whatever.png', '_system'); and the png is displayed full screen and I have to use the device back button to return to the interface (or on iOS, you're stuck and have to restart).

    That's because window.open() does NOT part of the interface of the inappbrowser plugin. Thus, you do not invoke the inappbrowser plugin and you don't get the system browser to view it.

    Please read and apply the docs of the inappbrowser of the plugin.

    In your html code:

    It is not valid, because you have a script element between the head and the body, which is not validated.

    The code could still 'work', but the result is invalid and therefore not defined/unpredictable.

    On your config:

    -you have a mixture of gap: syntax of the area names and syntax most recent without social fracture: namespace. I suggest you drop the gap: namespace altogether and use the new syntax only.

    -you have specified the portrait and landscape, but lack the splash of landscape.

    -for some plugins (camera and media, for example), you pinned extremely old versions. What did you do for a special purpose?

    - http://*.my-site-url.com"/ > is redundant, since you already have

  • iOS PhoneGap Iframe issues

    Hello, I am a Newbie PhoneGap and I'm having a few problems with iframes.

    There are basically about 2 months, I created an app, PhoneGap, using PhoneGapBuilder. All the app does show an iframe and load a Web site (https://mycloud.act.com). It worked fine on iOS and Android. When someone clicks on a link in the iframe, it would lead to the correct page and everything was fine.

    Today, I took the app back to continue to add a few more features and noticed that app now behaves different, and I did NOTHING to make this happen. Whenever you click on a link on the page loaded into the iframe, the link takes you out of the app and in Safari.

    I'm guessing that maybe something was updated or changed to PhoneGapBuilder to get there. I found several threads to overstack and even some here that nothing has worked to try to solve this problem.

    Inside of my config.xml file I have this:

    < access origin = "*" / >

    " < allow navigation href = ' https://MyCloud.Act.com " />

    " < allow intention href = ' http://*/* "/>

    " < allow intention href = ' https://*/* "/>

    < allow intention href = "Tel: *" / >

    < allow intention href = "sms: *" / >

    < allow intention href = "mailto:*" / >

    < allow intention href = "geo: *" / >

    < platform name = "android" >

    < allow intention href = "market: *" / >

    < / platform >

    < platform name = "ios" >

    < allow intention href = "itms: *" / >

    < allow intention href = "itms-apps: *" / >

    < / platform >

    Here are my index.html

    < html >

    < head >

    < meta charset = "utf-8" / >

    < name = "format detection" meta content = "phone = no" / > "

    < name meta = "msapplication-tap-featured" content = "no" / >

    < name meta = "viewport" content = "scalable user = no, initial scale = 1, maximum scale = 1, minimum scale = 1, width = device-width" / > "

    <!-it is a large open declaration of CSP. To lock this decline in production, see below. ->

    < meta http-equiv = "Content-security-policy" content = "by default-src * 'dangerous-inline';" style-src 'individual' "dangerous-inline '; "media-src *" / >

    <!-good default of declaration:

    * the gap: it only on iOS (using UIWebView) and is required for JS-> native communication

        * https://SSL.gstatic.com it takes only on Android and is necessary for TalkBack function properly

    * Disables using eval() and inline scripts in order to mitigate the risk of XSS vulnerabilities. To change this:

    Enable inline JS: "dangerous-inline" adds by default-src

    Allow to eval(): Add 'dangerous-eval' to default-src

    * Create your own at http://cspisawesome.com

    ->

    <!-< meta http-equiv = "Content-security-policy" content = "by default-src 'me' data: gap:"dangerous-inline" " https://SSL.gstatic.com; " style-src 'individual' 'dangerous-inline'; media-src *" / >-->

    "<!-< link rel ="stylesheet"href="css/jquery.mobile-1.4.5.min.css "/ >-->

    "< script type =" text/javascript"src="js/jquery.min.js "> < / script >

    "<!-< script type =" text/javascript"src="js/jquery.mobile-1.4.5.min.js "> < / script >->

    < link rel = "stylesheet" type = "text/css" href = "css/index.css" / > "

    < title > law Mobile < /title >

    < / head >

    < body >

    < div class = "app" >

    < script type = "text/javascript" src = "cordova.js" > < / script >

    < script type = "text/javascript" src = "js/index.js" > < / script >

    < script type = "text/javascript" >

    App.Initialize ();

    < /script >

    " < iframe id ="webview"src =" https://MyCloud.Act.com "> < / iframe ".

    < / div >

    < / body >

    < / html >

    I see that you do not have a phonegap version declared in your config.xml file, which means that you are going to build with the default version on PhoneGap Build, which changes intermittently. It has been updated about a week there (from cli - 5.2.0 to cli - 6.3.0) which is the likely source of your unexpected behavior change. So going back to the old default value, add this to your config.xml file:

    Some info:

    PhoneGap CLI - 6.3.0 now on the construction

    Preferences | PhoneGap Docs

    Current Adobe PhoneGap Build help

  • Upgrade of PhoneGap Build - breaking builds since yesterday

    Our constructions for iOS and Android are no longer works.

    We have upgraded the phonegap 6.3.0 CLI version as suggested.

    Two of our applications are now stuck on the "Loading" page where we will be waiting for the onready device.

    Builds are successful, but the same code base behaves differently from updates.

    Here are most of the relevant preferences and plugins of our config.xml

    < preference name = "permissions" value = 'none' / >
    < preference name = "orientation" value = "default" />
    < preference name = "target device" value 'universal' = />
    < preference name = "full screen" value = 'false' />
    < preference name = "webviewbounce" value = « true » />
    < preference name = "rentals-icon" value = « true » />
    < preference name "stay webview" = value = 'false' />
    < preference name = "detect types of data" value = « true » />
    < preference name = "exit suspend" value = 'false' />
    < preference name = "disable-cursor" value = 'false' />
    < preference name = "android-minSdkVersion" value ="14" />
    < preference name = "android-installLocation" value = « auto » />
    < preference name = "android-fitsSystemWindows" value = « true » />
    < preference name = "android-windowSoftInputMode" value = "adjustResize" />
    < preference name = ' phonegap-version ' value = ' cli - 6.3.0 ' / >
    < preference name = "LogLevel" value = "VERBOSE" />
    < preference name = "AndroidLaunchMode" value = "singleTop" />
    < preference name = "InAppBrowserStorageEnabled" value = « true » />
    < preference name = "StatusBarOverlaysWebView" value = 'false' />
    < preference name = "StatusBarBackgroundColor" value = "#000000" />
    < preference name = "StatusBarStyle" value = "lightcontent" />
    < preference name = "AutoHideSplashScreen" value = « true » />
    < preference name = "SplashScreenDelay" value = « 1000 » />
    < preference name = "FadeSplashScreen" value = 'false' />
    < preference name = "ShowSplashScreenSpinner" value = 'false' />

    < Gap : plugin name = "cordova-plugin-console" source ="npm" spec ="~1.0.3" />
    < Gap : plugin name = "cordova-plugin-dialogues" source ="npm" spec ="~1.2.1" />
    < Gap : plugin name = ' cordova-plugin-splashscreen ' source ="npm" spec ="~3.2.2" />
    < Gap : plugin name = ' cordova-plugin-device ' source ="npm" spec ="~1.1.2" / >
    < Gap : plugin name = "cordova-plugin-whitelist" source ="npm" spec ="~1.2.2" />
    < Gap : plugin name = ' cordova-plugin-network-information ' source ="npm" spec ="~1.2.1" />
    < Gap : plugin name = "statusbar-plugin-cordova" source ="npm" spec ="2.1.3" />
    < Gap : plugin name = "cordova-plugin-inappbrowser" source ="npm" spec ="~1.4.0" />
    < Gap : plugin name = "cordova-plugin-detect-screenshot" source ="npm" spec ="1.0.4" />
    < Gap : plugin name = "cordova-plugin-ignoremuteswitch" source ="npm" spec ="~1.0.1" />

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

    Post edited by: DaShaun Carter

    Oh if you were locked in cli - 6.1.0, this should not made all the changes. We have not added that versions, not build strings have changed.

    Have you tried to attach a debugger to see what are the mistakes are happening?

  • SplashScreen works only on Android only when built with Phonegap Build

    If I build my application locally, the splashscreen works well. However, if I build by Phonegap Build, it is not. In fact, this happens only if I use guidance in the density attribute such as:

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

    or

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

    Remove the parts of 'land -' or '-port' direction makes the splashscreen working again. But why this happens only when compiled by Phonegap Build? How can I treat the different directions this problem?

    I tried to downgrade the splashcreen plugin, change the resources folder names, file names, places, remove some preferences related to the splashscreen, but none worked. I tried Android 5.0 and 6.0 devices. Below is part of my config.xml file:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <widget id="aaa" version="1.1.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
      <name>aaa</name>
      <description>aaa</description>
      <author email="[email protected]" href="https://aaa.com/"></author>
    
      <content src="index.html"/>
      <access origin="*"/>
      <allow-navigation href="*"/>
      <allow-intent href="*"/>
    
      <preference name="permissions" value="none"/>
      <preference name="webviewbounce" value="false"/>
      <preference name="UIWebViewBounce" value="false"/>
      <preference name="DisallowOverscroll" value="true"/>
      <preference name="android-minSdkVersion" value="16"/>
      <preference name="BackupWebStorage" value="none"/>
    
      <!-- Splashscreen config -->
      <preference name="SplashScreen" value="screen"/>
      <preference name="SplashScreenDelay" value="4000"/>
      <preference name="FadeSplashScreenDuration" value="1000"/>
      <preference name="SplashMaintainAspectRatio" value="true"/>
      <preference name="SplashShowOnlyFirstTime" value="false"/>
      <!-- End of splashscreen config -->
    
      <preference name="phonegap-version" value="cli-6.1.0"/>
      <plugin name="cordova-plugin-splashscreen" spec="~3.2.2"/>
      <plugin name="cordova-plugin-inappbrowser" spec="~1.4.0"/>
      <plugin name="cordova-plugin-whitelist" spec="~1.2.2"/>
      <plugin name="cordova-plugin-dialogs" spec="~1.2.1"/>
    
      <feature name="StatusBar">
        <param name="ios-package" value="CDVStatusBar" onload="true"/>
      </feature>
      <platform name="android">
        <icon src="resources/android/icon/drawable-ldpi-icon.png" density="ldpi"/>
        <icon src="resources/android/icon/drawable-mdpi-icon.png" density="mdpi"/>
        <icon src="resources/android/icon/drawable-hdpi-icon.png" density="hdpi"/>
        <icon src="resources/android/icon/drawable-xhdpi-icon.png" density="xhdpi"/>
        <icon src="resources/android/icon/drawable-xxhdpi-icon.png" density="xxhdpi"/>
        <icon src="resources/android/icon/drawable-xxxhdpi-icon.png" density="xxxhdpi"/>
        <splash src="resources/android/splash/drawable-land-ldpi-screen.png" density="land-ldpi"/>
        <splash src="resources/android/splash/drawable-land-mdpi-screen.png" density="land-mdpi"/>
        <splash src="resources/android/splash/drawable-land-hdpi-screen.png" density="land-hdpi"/>
        <splash src="resources/android/splash/drawable-land-xhdpi-screen.png" density="land-xhdpi"/>
        <splash src="resources/android/splash/drawable-land-xxhdpi-screen.png" density="land-xxhdpi"/>
        <splash src="resources/android/splash/drawable-land-xxxhdpi-screen.png" density="land-xxxhdpi"/>
        <splash src="resources/android/splash/drawable-port-ldpi-screen.png" density="port-ldpi"/>
        <splash src="resources/android/splash/drawable-port-mdpi-screen.png" density="port-mdpi"/>
        <splash src="resources/android/splash/drawable-port-hdpi-screen.png" density="port-hdpi"/>
        <splash src="resources/android/splash/drawable-port-xhdpi-screen.png" density="port-xhdpi"/>
        <splash src="resources/android/splash/drawable-port-xxhdpi-screen.png" density="port-xxhdpi"/>
        <splash src="resources/android/splash/drawable-port-xxxhdpi-screen.png" density="port-xxxhdpi"/>
      </platform>
    
      <icon src="resources/android/icon/drawable-xhdpi-icon.png"/>
    </widget>
    

    Maybe your projections are simply not found.

    You can post a screenshot of your zip file directory structure, please?

    Also, if you use any BMP, you need not include an element in your config file.

    Finally, BMP requires your icon by default to the root (with index and config), does not in some resources/.../-directory.

  • PhoneGap 6.1.0 not complying with android-minSdkVersion

    I have two applications that I used to build for android on phonegap 5.3.2 with preference:

    < name of option = "android-minSdkVersion" value = "21" / >

    < name of option = "android-targetSdkVersion" value = "23" / >

    I upgraded my environment to work with phonegap 6.1.0:

    < name of option = "phonegap-version" value = "cli - 6.1.0" / >

    Now build phonegap is android-minSdkVersion 15 + when I try to publish the APK on Store.

    Any thoughts?

    Thank you

    Gustavo

    configuration file:

    <?xml version='1.0' encoding='utf-8'?>
    <widget 
        id="com.valetiapp.valet" 
        version="0.5.3" 
        xmlns="http://www.w3.org/ns/widgets" 
        xmlns:gap="http://phonegap.com/ns/1.0" 
        xmlns:android="http://schemas.android.com/apk/res/android">
        
        <name>Valeti Manobrista</name>
        <description>
            Valeti for valets.
        </description>
        <author email="[email protected]" href="http://valeti.com">
            Valeti App Sistemas Ltda
        </author>
        
      <preference name="phonegap-version" value="cli-6.1.0" />
        <preference name="orientation" value="portrait" />
        <preference name="StatusBarStyle" value="default" />
      <preference name="ShowSplashScreenSpinner" value="false" />
      <preference name="FadeSplashScreen" value="false" />
        <preference name="AutoHideSplashScreen" value="true" />
      <preference name="SplashScreenDelay" value="2000" />
        <preference name="DisallowOverscroll" value="true" />
      <preference name="android-build-tool" value="gradle" />
        <preference name="android-minSdkVersion" value="21" />
       <preference name="android-targetSdkVersion" value="23" />
        
        <access origin="*" />
        <access origin="mailto:*" launch-external="yes" />
        
        <content src="index.html" />
    
      <!-- Config -->
    
    
      <!-- Plugins -->
    
    
        <gap:plugin name="cordova-plugin-splashscreen" spec="~3.2.2" source="npm" />
        <gap:plugin name="cordova-plugin-whitelist" spec="~1.2.2" source="npm" />
      <gap:plugin name="phonegap-plugin-barcodescanner" spec="~5.0.1" source="npm" />
      <gap:plugin name="cordova-plugin-device" source="npm" spec="~1.1.2" />
      <gap:plugin name="de.appplant.cordova.plugin.local-notification" spec="~0.8.4" source="npm" />
      <gap:plugin name="cordova-plugin-datecs-printer" spec="~0.3.7" source="npm" />
    
    
    
    
        <!-- ANDROID Configuration -->
        <engine name="android" />
        <platform name="android">
            
            <preference name="SplashScreen" value="screen"/>
            
            <icon platform="android" qualifier="ldpi" src="res/icons/android/icon-36-ldpi.png"/>
         <icon platform="android" qualifier="mdpi" src="res/icons/android/icon-48-mdpi.png"/>
         <icon platform="android" qualifier="hdpi" src="res/icons/android/icon-72-hdpi.png"/>
         <icon platform="android" qualifier="xhdpi" src="res/icons/android/icon-96-xhdpi.png"/>
         <icon platform="android" qualifier="xxhdpi" src="res/icons/android/icon-144-xxhdpi.png"/>
         <icon platform="android" qualifier="xxxhdpi" src="res/icons/android/icon-192-xxxhdpi.png"/>
         
         <splash platform="android" qualifier="ldpi" src="res/screen/android/ldpi-portrait.png" />
         <splash platform="android" qualifier="mdpi" src="res/screen/android/mdpi-portrait.png" />
         <splash platform="android" qualifier="hdpi" src="res/screen/android/hdpi-portrait.png" />
         <splash platform="android" qualifier="xhdpi" src="res/screen/android/xhdpi-portrait.png" />
            
        </platform>
        
        <!-- IOS Configuration -->
        <engine name="ios" />
        <platform name="ios">
         <icon platform="ios" src="res/icons/ios/icon-small.png" width="29" height="29" />
         <icon platform="ios" src="res/icons/ios/icon-small-2x.png" width="58" height="58" />
         <icon platform="ios" src="res/icons/ios/icon-40.png" width="40" height="40" />
         <icon platform="ios" src="res/icons/ios/icon-40-2x.png" width="80" height="80" />
         <icon platform="ios" src="res/icons/ios/icon-50.png" width="50" height="50" />
         <icon platform="ios" src="res/icons/ios/icon-50-2x.png" width="100" height="100" />
         <icon platform="ios" src="res/icons/ios/icon.png" width="57" height="57" />
         <icon platform="ios" src="res/icons/ios/icon-2x.png" width="114" eight="114" />
         <icon platform="ios" src="res/icons/ios/icon-60.png" width="60" height="60" />
         <icon platform="ios" src="res/icons/ios/icon-60-2x.png" width="120" height="120" />
         <icon platform="ios" src="res/icons/ios/icon-60-3x.png" width="180" height="180" />
         <icon platform="ios" src="res/icons/ios/icon-72.png" width="72" height="72" />
         <icon platform="ios" src="res/icons/ios/icon-72-2x.png" width="144" height="144" />
         <icon platform="ios" src="res/icons/ios/icon-76.png" width="76" height="76" />
         <icon platform="ios" src="res/icons/ios/icon-76-2x.png" width="152" height="152" />
         
         <splash platform="ios" src="res/screen/ios/Default.png" width="320" height="480" />
         <splash platform="ios" src="res/screen/ios/Default_2x.png" width="680" height="960" />
         <splash platform="ios" src="res/screen/ios/Default-568h_2x.png" width="640" height="1136" />
         <splash platform="ios" src="res/screen/ios/Default-Landscape.png" width="1024" height="768" />
         <splash platform="ios" src="res/screen/ios/Default-Landscape_2x.png" width="2048" height="1536" />
         <splash platform="ios" src="res/screen/ios/Default-Portrait.png" width="768" height="1004" />
         <splash platform="ios" src="res/screen/ios/Default-Portrait_2x.png" width="1536" height="2008" />
        </platform>
        <gap:config-file platform="ios" parent="ITSAppUsesNonExemptEncryption" mode="add">
      <false/>
      </gap:config-file>
        
        <splash src="splash.png" />
    
    
    </widget>
    

    I discovered that the plugin to scan barcode phonegap changed the min sdk version after build via a gradle hook, so it is not related to phonegap 6.1.0.

  • PhoneGap desktop - using Plugins

    Hi Newbie question here. I downloaded and installed desktop phonegap, I created a phonegap project that I ran on the application of the emulator on my phone.

    I am trying to get the plugin to network information and the plugin from media for his work.

    I want to test if I have a suggested internet and I want to play sounds on the app.

    My question is in what regards the plugins. I can't find all sorts of documentation such as the use of plugins and I'm not sure what to do. ?

    some sites have different plugins that have been downloaded and put in folders, others just added in the config.xml file, but these lines seemed to already be there, and I wasn't having much luck getting their job.

    also when I'm happy with this app what measures should I take to build in a fully functional app here?

    I know it's a newb question but I am really get bogged down looking for something that is probably simple, thanks in advance

    Hello! Answers online.

    Hi Newbie question here. I downloaded and installed desktop phonegap, I created a phonegap project that I ran on the application of the emulator on my phone.

    I am trying to get the plugin to network information and the plugin from media for his work.

    I want to test if I have a suggested internet and I want to play sounds on the app.

    Please note that the developer PG App is not an emulation perfect environment that receives a compiled application. It's really cool and good to use for quick iteration, but there are cases where you will encounter differences. The media plugin is one of them - in a compiled application, your sound is perhaps in the application bundle, but that would break the App Dev PG because the beam refers to the PG Dev app, not /your/ app. Information plugin, OTH, network should work without differences (AFAIK).

    My question is in what regards the plugins. I can't find all sorts of documentation such as the use of plugins and I'm not sure what to do. ?

    some sites have different plugins that have been downloaded and put in folders, others just added in the config.xml file, but these lines seemed to already be there, and I wasn't having much luck getting their job.

    Infrastructure of the plugin and instructions to add to your project have changed over the years and so the docs have evolved in this direction. Many documents continue to include the manual installation instructions. As a general rule, if the docs say they are compatible with the CLIs of PG/Cordova, use the command 'Add a plugin of cordova' that they provide. Plugins can be installed this way will provide a "plugin.xml" file in their repo.

    Remember, however, when you use the PhoneGap developer application, have access to the base plugins more some additional plugins. This means that if the plugin is not compiled into the App Dev PG, you can not use, regardless what is your config file. XML (PG Dev App is NOT analysis config.xml). You can either:

    • Create a version of the PG Dev App containing the plugins you want to use for your use
    • Install PhoneGap / LCIs of Cordova and build your application directly
    • Build your application using PhoneGap Build

    When you use the LCIs, you add a plugin like this:

    cordova plugin add cordova-plugin-some-plugin-id --save
    

    The -Save switch will update your file config.xml properly to include the plugin. I suggest you ensure that you also to pin your plugins for a specific version so that you don't accidentally later shoot a newer version and break your code in unexpected ways.

    When you use any BMP, you add just a plugin to the config.xml file, as

    
    

    Finally, if you try to use a basic plugin and it does not work, be more specific so that we can help. Include error messages, code snippets, etc.

    also when I'm happy with this app what measures should I take to build in a fully functional app here?

    You will need to build your application using either the PhoneGap / Cordova CLIs or PhoneGap Build.

    I know it's a newb question but I am really get bogged down looking for something that is probably simple, thanks in advance

    If in doubt, check out the docs:

    And if that fails, give us a complaint!

Maybe you are looking for