Ion assembly phonegap and config.xml

I use the Ionic build service and Phonegap. I also use the ion run [android / ios] to test the application on the phone during development. I noticed that the xmlns namespace is different for the phonegap file and cordova config.xml. Do I need to store two separate config.xml files, one for a telephone conversation in www / config.xml and the other for a cord in the root directory? Or do you have consolidation into one config.xml file?

+5
source share
2 answers

Ionic is a framework that works on a Cordova / PhoneGap [and others] card and has many differences in namespace. I am sure that you have already noticed how ion-pane instead of pane , to name one of many.

I feel that this is done so that the developer feels that they work within the same framework, instead of thinking about understanding angularJS bower, gulp, Cordoba all as different are these different frameworks that you have to deal with (although you , and this will help if you understand them separately), and this is just one of the subtle differences from the ionic workspace.

No, you do not need to do one more, that is, the corova config.xml file that works in the Ionic Framework.

+1
source

This creates www / config.xml (PhoneGap-build) from the existing config.xml (Ionic) file

npm install pgb-config-maker

Simple and sweet.

+1
source

Source: https://habr.com/ru/post/1213952/


All Articles