Phonegap: gap:config-file Not working on config.xml

OverMind

I am trying to use the element "gap:config-file" on the config.xml of my Phonegap project to modify some elements of the generated AndroidManifest.xml, but it is not working.

I am adding this to my config.xml:

<gap:config-file platform="android" parent="/manifest">
    <supports-screens
    android:xlargeScreens="false"
    android:largeScreens="false"
    android:smallScreens="false" />
</gap:config-file>

Then i do a

phonegap build android

Everything is succesfull, but when i open the AndroidManifest.xml, there is no changes, still appears the old values:

<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />

I have been trying for hours, but i can't make this work.

Any idea?

Thanks! Gustavo

bjunix

This is a feature for Phonegap Build only. The feature is documented here: http://phonegap.com/blog/2014/01/30/customizing-your-android-manifest-and-ios-property-list-on-phonegap-build/

Locally you could create a custom plugin and specify the overrides for the manifest there. The other option is to directly edit the AndroidManifest.xml and add the desired options there. These changes will not be overridden during the build process.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Where to put gap:config-file in PhoneGap config.xml

From Dev

phonegap config.xml file for new app

From Dev

Config file and PhoneGap

From Dev

Config file and PhoneGap

From Dev

phonegap where is config.xml?

From Dev

Malformed config.xml in Phonegap

From Dev

Phonegap build config.xml

From Dev

Should a phonegap plugin be declared in the config.xml file?

From Dev

Should a phonegap plugin be declared in the config.xml file?

From Dev

nginx config file not working

From Dev

xml to use config file

From Dev

typesafe.config - external config file is not working

From Dev

Phonegap Build Config.xml Malformed

From Dev

Android PhoneGap Config XML user-permission

From Dev

faces-config.xml is config file

From Dev

SonataUserBundle XML serializer config not working

From Dev

Android: Adding XML config file?

From Dev

PhoneGap Build Malformed Config.xml Error -- Use an XML Validator

From Dev

configure android intents via config.xml in phonegap app

From Dev

Per platform configuration (config.xml) on PhoneGap Build

From Dev

Phonegap still getting whitelist rejection after modifying config.xml

From Dev

cordova/phonegap plugin add VS config.xml

From Dev

Malformed config.xml when trying to compile with PhoneGap Build

From Dev

Cordova/Phonegap ignores fullscreen preference in config.xml on iOS

From Dev

android cordova phonegap config.xml unbound prefix

From Dev

Add DateTimepicker plugin in phonegap build config.xml

From Dev

config.xml location in Cordova vs PhoneGap Build

From Dev

Modify Android's Manifest through config.xml in phonegap/cordova

From Dev

Selected folder doesn't contain a config.xml in phonegap

Related Related

HotTag

Archive