Shoebie
Shoebie

Reputation: 1263

ionic phonegap build and config.xml

I am using Ionic and Phonegap build service. I also use ionic run [android/ios] to test the app on the phone during development. I notice that the namespace xmlns is different for phonegap and cordova's config.xml file. Do I need to keep two separate config.xml files, one for phonegap in www/config.xml and another for cordova in root directory? Or is there away to consolidate to one config.xml file?

Upvotes: 5

Views: 1473

Answers (2)

siddiq
siddiq

Reputation: 203

This generates www/config.xml (PhoneGap-build) from existing config.xml (Ionic)

npm install pgb-config-maker

Simple and sweet.

Upvotes: 1

garrettmac
garrettmac

Reputation: 8585

Ionic is a framework that works above the Cordova/PhoneGap framework [and others] and it has many namespace differences I'm sure you've already noticed like ion-pane instead of pane just to name one of the many.

I feel this is done to make the developer feel like they are working within one framework instead of having to think about understanding angularJS bower, gulp, Cordova all as being different these different frameworks you'd have to deal with (although you are and it would help if you understood them separately) and this is just one of the subtle differences to the ionic workspace.

So no, you don't need to make another one, that is the Cordova config.xml working within the Ionic Framework.

Upvotes: 1

Related Questions