Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 790
eNddy Avatar asked Oct 31 '22 09:10

eNddy


1 Answers

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.

like image 85
garrettmac Avatar answered Nov 03 '22 00:11

garrettmac